Condividi tramite


SqlExpressionFactory.Constant Metodo

Definizione

Overload

Constant(Object, Type, RelationalTypeMapping)

Crea un nuovo SqlConstantExpression oggetto che rappresenta una costante in un albero SQL.

Constant(Object, RelationalTypeMapping)

Crea un nuovo SqlConstantExpression oggetto che rappresenta una costante in un albero SQL.

Constant(Object, Type, RelationalTypeMapping)

Crea un nuovo SqlConstantExpression oggetto che rappresenta una costante in un albero SQL.

public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression Constant (object? value, Type type, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Constant : obj * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression
override this.Constant : obj * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression
Public Overridable Function Constant (value As Object, type As Type, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlConstantExpression

Parametri

value
Object

Un valore.

type
Type

Tipo per la costante. Utile quando value è Null.

typeMapping
RelationalTypeMapping

Oggetto RelationalTypeMapping associato all'espressione.

Restituisce

Espressione che rappresenta una costante in un albero SQL.

Implementazioni

Si applica a

Constant(Object, RelationalTypeMapping)

Crea un nuovo SqlConstantExpression oggetto che rappresenta una costante in un albero SQL.

public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression Constant (object value, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression Constant (object? value, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Constant : obj * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression
override this.Constant : obj * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression
Public Overridable Function Constant (value As Object, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlConstantExpression

Parametri

value
Object

Un valore.

typeMapping
RelationalTypeMapping

Oggetto RelationalTypeMapping associato all'espressione.

Restituisce

Espressione che rappresenta una costante in un albero SQL.

Implementazioni

Si applica a