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

treat-as 형식의 형식 메타데이터입니다.

반환

지정된 인수 및 형식을 사용하는 새 DbTreatExpression입니다.

예외

argument 또는 treatType가 null입니다.

treatTypeargument의 결과 형식과 같은 형식 계층에 있지 않습니다.

설명

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

적용 대상