DbExpressionBuilder.TreatAs(DbExpression, TypeUsage) 메서드

정의

DbTreatExpression를 만듭니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbTreatExpression ^ TreatAs(System::Data::Common::CommandTrees::DbExpression ^ argument, System::Data::Metadata::Edm::TypeUsage ^ treatType);
public static System.Data.Common.CommandTrees.DbTreatExpression TreatAs(this System.Data.Common.CommandTrees.DbExpression argument, System.Data.Metadata.Edm.TypeUsage treatType);
static member TreatAs : System.Data.Common.CommandTrees.DbExpression * System.Data.Metadata.Edm.TypeUsage -> System.Data.Common.CommandTrees.DbTreatExpression
<Extension()>
Public Function TreatAs (argument As DbExpression, treatType As TypeUsage) As DbTreatExpression

매개 변수

argument
DbExpression

인스턴스를 지정하는 식입니다.

treatType
TypeUsage

처리 형식에 대한 형식 메타데이터입니다.

반품

지정된 인수 및 형식이 있는 새 DbTreatExpression입니다.

예외

argument 또는 treatType null입니다.

treatType 의 결과 argument형식과 동일한 형식 계층 구조에 있지 않습니다.

설명

DbTreatExpression에는 다형 결과 형식이 argument 있어야 하며, 이 treatType 형식은 해당 결과 형식과 동일한 형식 계층 구조의 형식입니다.

적용 대상