IConventionDbFunction.SetTranslation 方法

定义

重载

SetTranslation(Func<IReadOnlyCollection<SqlExpression>,SqlExpression>, Boolean)

设置转换回调,以便对 SQL 表达式片段执行方法调用的自定义转换。

SetTranslation(Func<IReadOnlyList<SqlExpression>,SqlExpression>, Boolean)

设置转换回调,以便对 SQL 表达式片段执行方法调用的自定义转换。

SetTranslation(Func<IReadOnlyCollection<SqlExpression>,SqlExpression>, Boolean)

设置转换回调,以便对 SQL 表达式片段执行方法调用的自定义转换。

public void SetTranslation (Func<System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>,Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> translation, bool fromDataAnnotation = false);
public Func<System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>,Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> SetTranslation (Func<System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>,Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> translation, bool fromDataAnnotation = false);
abstract member SetTranslation : Func<System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * bool -> unit
abstract member SetTranslation : Func<System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * bool -> Func<System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>
Public Sub SetTranslation (translation As Func(Of IReadOnlyCollection(Of SqlExpression), SqlExpression), Optional fromDataAnnotation As Boolean = false)
Public Function SetTranslation (translation As Func(Of IReadOnlyCollection(Of SqlExpression), SqlExpression), Optional fromDataAnnotation As Boolean = false) As Func(Of IReadOnlyCollection(Of SqlExpression), SqlExpression)

参数

translation
Func<IReadOnlyCollection<SqlExpression>,SqlExpression>

转换回调,用于对 SQL 表达式片段执行方法调用的自定义转换。

fromDataAnnotation
Boolean

指示配置是否是使用数据注释指定的。

返回

配置的值。

适用于

SetTranslation(Func<IReadOnlyList<SqlExpression>,SqlExpression>, Boolean)

设置转换回调,以便对 SQL 表达式片段执行方法调用的自定义转换。

public Func<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>,Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>? SetTranslation (Func<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>,Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>? translation, bool fromDataAnnotation = false);
abstract member SetTranslation : Func<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * bool -> Func<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>
Public Function SetTranslation (translation As Func(Of IReadOnlyList(Of SqlExpression), SqlExpression), Optional fromDataAnnotation As Boolean = false) As Func(Of IReadOnlyList(Of SqlExpression), SqlExpression)

参数

translation
Func<IReadOnlyList<SqlExpression>,SqlExpression>

转换回调,用于对 SQL 表达式片段执行方法调用的自定义转换。

fromDataAnnotation
Boolean

指示配置是否是使用数据注释指定的。

返回

配置的值。

适用于