Dela via


IConventionDbFunction.SetTranslation Method

Definition

Overloads

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

Sets the translation callback for performing custom translation of the method call into a SQL expression fragment.

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

Sets the translation callback for performing custom translation of the method call into a SQL expression fragment.

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

Sets the translation callback for performing custom translation of the method call into a SQL expression fragment.

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)

Parameters

translation
Func<IReadOnlyCollection<SqlExpression>,SqlExpression>

The translation callback for performing custom translation of the method call into a SQL expression fragment.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to

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

Source:
IConventionDbFunction.cs
Source:
IConventionDbFunction.cs
Source:
IConventionDbFunction.cs

Sets the translation callback for performing custom translation of the method call into a SQL expression fragment.

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)

Parameters

translation
Func<IReadOnlyList<SqlExpression>,SqlExpression>

The translation callback for performing custom translation of the method call into a SQL expression fragment.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to