Share via


IConventionDbFunctionBuilder.CanSetTranslation Method

Definition

Overloads

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

Returns a value indicating whether the given translation can be set for the database function.

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

Returns a value indicating whether the given translation can be set for the database function.

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

Returns a value indicating whether the given translation can be set for the database function.

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

Parameters

translation
Func<IReadOnlyCollection<SqlExpression>,SqlExpression>

The translation to use.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given translation can be set for the database function.

Applies to

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

Source:
IConventionDbFunctionBuilder.cs
Source:
IConventionDbFunctionBuilder.cs
Source:
IConventionDbFunctionBuilder.cs

Returns a value indicating whether the given translation can be set for the database function.

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

Parameters

translation
Func<IReadOnlyList<SqlExpression>,SqlExpression>

The translation to use.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given translation can be set for the database function.

Applies to