DbExpressionBuilder.TreatAs(DbExpression, TypeUsage) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
새 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입니다.
treatType는 argument의 결과 형식과 같은 형식 계층에 있지 않습니다.
설명
DbTreatExpression에는 다형성 결과 형식이 argument 있어야 하며, 이는 treatType 해당 결과 형식과 동일한 형식 계층 구조의 형식입니다.