Sprache

DbFunctionBuilder.IConventionDbFunctionBuilder.CanSetTranslation Methode

Definition

Gibt einen Wert zurück, der angibt, ob die angegebene Übersetzung für die Datenbankfunktion festgelegt werden kann.

bool IConventionDbFunctionBuilder.CanSetTranslation(Func<System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>,Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> translation, bool fromDataAnnotation);
abstract member Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder.CanSetTranslation : Func<System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * bool -> bool
override this.Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder.CanSetTranslation : Func<System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * bool -> bool
Function CanSetTranslation (translation As Func(Of IReadOnlyCollection(Of SqlExpression), SqlExpression), fromDataAnnotation As Boolean) As Boolean Implements IConventionDbFunctionBuilder.CanSetTranslation

Parameter

translation
Func<IReadOnlyCollection<SqlExpression>,SqlExpression>

Die zu verwendende Übersetzung.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

true wenn die angegebene Übersetzung für die Datenbankfunktion festgelegt werden kann.

Implementiert

Gilt für: