共用方式為


DbFunctionBuilder.IConventionDbFunctionBuilder.CanSetTranslation 方法

定義

傳回值,指出是否可以為資料庫函式設定指定的翻譯。

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

參數

translation
Func<IReadOnlyCollection<SqlExpression>,SqlExpression>

要使用的翻譯。

fromDataAnnotation
Boolean

指出是否已使用資料批註指定組態。

傳回

true 如果可以設定資料庫函式的指定翻譯,則為 。

實作

適用於