DbExpressionBuilder.Constant Metoda

Definicja

Tworzy nowy adres DbConstantExpression.

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:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbConstantExpression ^ Constant(System::Data::Metadata::Edm::TypeUsage ^ constantType, System::Object ^ value);
public static System.Data.Common.CommandTrees.DbConstantExpression Constant (this System.Data.Metadata.Edm.TypeUsage constantType, object value);
static member Constant : System.Data.Metadata.Edm.TypeUsage * obj -> System.Data.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 constantTypewyniku .

Wyjątki

value lub constantType ma wartość null.

value nie jest wystąpieniem prawidłowego typu stałej, constantType nie reprezentuje typu pierwotnego lub value 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::Common::CommandTrees::DbConstantExpression ^ Constant(System::Object ^ value);
public static System.Data.Common.CommandTrees.DbConstantExpression Constant (object value);
static member Constant : obj -> System.Data.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

value ma wartość null.

value nie jest wystąpieniem prawidłowego typu stałej.

Dotyczy