Condividi tramite


ISqlExpressionFactory.Constant Metodo

Definizione

Overload

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.

Constant(Object, RelationalTypeMapping)

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

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression Constant (object value, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
public 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
Public 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.

Si applica a

Constant(Object, Type, RelationalTypeMapping)

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

public 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
Public 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 il valore è Null.

typeMapping
RelationalTypeMapping

Oggetto RelationalTypeMapping associato all'espressione.

Restituisce

Espressione che rappresenta una costante in un albero SQL.

Si applica a