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 如果可以为数据库函数设置给定的转换,则为 。

实现

适用于