共用方式為


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)

來源:
IConventionDbFunction.cs
來源:
IConventionDbFunction.cs
來源:
IConventionDbFunction.cs

設定轉譯回呼,以對 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

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

傳回

已設定的值。

適用於