DbExpressionBuilder.Constant 메서드

정의

DbConstantExpression를 만듭니다.

오버로드

Name Description
Constant(TypeUsage, Object)

지정된 상수 값을 사용하여 지정된 기본 형식의 새 DbConstantExpression 형식을 만듭니다.

Constant(Object)

지정된 상수 값을 사용하여 새 DbConstantExpression 값을 만듭니다.

Constant(TypeUsage, Object)

지정된 상수 값을 사용하여 지정된 기본 형식의 새 DbConstantExpression 형식을 만듭니다.

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

매개 변수

constantType
TypeUsage

상수 값의 형식입니다.

value
Object

나타낼 상수 값입니다.

반품

지정된 값과 결과 형식 constantType이 있는 새 DbConstantExpression입니다.

예외

value 또는 constantType null입니다.

value가 유효한 상수 형식의 인스턴스가 아니거나value, constantType 기본 형식을 나타내지 않거나, 나타내는 형식과 다른 기본 형식constantType입니다.

적용 대상

Constant(Object)

지정된 상수 값을 사용하여 새 DbConstantExpression 값을 만듭니다.

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

매개 변수

value
Object

나타낼 상수 값입니다.

반품

지정된 값이 있는 새 DbConstantExpression입니다.

예외

value가 null입니다.

value 가 유효한 상수 형식의 인스턴스가 아닌 경우

적용 대상