Compartir a través de


SqlExpressionFactory.Constant Método

Definición

Sobrecargas

Constant(Object, Type, RelationalTypeMapping)

Crea un nuevo SqlConstantExpression objeto que representa una constante en un árbol de SQL.

Constant(Object, RelationalTypeMapping)

Crea un nuevo SqlConstantExpression objeto que representa una constante en un árbol de SQL.

Constant(Object, Type, RelationalTypeMapping)

Crea un nuevo SqlConstantExpression objeto que representa una constante en un árbol de 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

Parámetros

value
Object

Un valor.

type
Type

Tipo de la constante. Resulta útil cuando value es NULL.

typeMapping
RelationalTypeMapping

RelationalTypeMapping asociado a la expresión.

Devoluciones

Expresión que representa una constante en un árbol SQL.

Implementaciones

Se aplica a

Constant(Object, RelationalTypeMapping)

Crea un nuevo SqlConstantExpression objeto que representa una constante en un árbol de 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

Parámetros

value
Object

Un valor.

typeMapping
RelationalTypeMapping

RelationalTypeMapping asociado a la expresión.

Devoluciones

Expresión que representa una constante en un árbol SQL.

Implementaciones

Se aplica a