Udostępnij za pośrednictwem


DbExpressionBuilder.Constant Metoda

Definicja

Przeciążenia

Constant(TypeUsage, Object)

Tworzy nowy DbConstantExpression typ pierwotny o podanej wartości stałej.

Constant(Object)

Tworzy nowy DbConstantExpression element o podanej wartości stałej.

Constant(TypeUsage, Object)

Tworzy nowy DbConstantExpression typ pierwotny o podanej wartości stałej.

public static System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression Constant (this System.Data.Entity.Core.Metadata.Edm.TypeUsage constantType, object value);
static member Constant : System.Data.Entity.Core.Metadata.Edm.TypeUsage * obj -> System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression
<Extension()>
Public Function Constant (constantType As TypeUsage, value As Object) As DbConstantExpression

Parametry

constantType
TypeUsage

Typ wartości stałej.

value
Object

Stała wartość do reprezentowania.

Zwraca

Nowa wartość DbConstantExpression z daną wartością i typem wyniku constantType.

Wyjątki

wartość lub wartość constantType ma wartość null.

wartość nie jest wystąpieniem prawidłowego typu stałej, constantType nie reprezentuje typu pierwotnego lub wartość jest innym typem pierwotnym niż reprezentowane przez constantType.

Dotyczy

Constant(Object)

Tworzy nowy DbConstantExpression element o podanej wartości stałej.

public static System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression Constant (object value);
static member Constant : obj -> System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression
Public Function Constant (value As Object) As DbConstantExpression

Parametry

value
Object

Stała wartość do reprezentowania.

Zwraca

Nowa wartość DbConstantExpression z daną wartością.

Wyjątki

wartość ma wartość null.

wartość nie jest wystąpieniem prawidłowego typu stałej.

Dotyczy