DbExpressionBuilder.CastTo(DbExpression, TypeUsage) メソッド

定義

キャスト操作をポリモーフィックな引数に適用する新しい DbCastExpression を作成します。

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

パラメーター

argument
DbExpression

キャストを適用する引数。

toType
TypeUsage

キャストする型を指定する型メタデータ。

返品

指定された引数とターゲット型を持つ新しい DbCastExpression。

例外

argument または toType が null です。

指定されたキャストが無効です。

適用対象