DbExpressionBuilder.Constant メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
Constant(TypeUsage, Object) |
指定された定数値を使用して、指定されたプリミティブ型の新しい DbConstantExpression 式を作成します。 |
Constant(Object) |
指定した定数値を使用して新しい DbConstantExpression を作成します。 |
Constant(TypeUsage, Object)
指定された定数値を使用して、指定されたプリミティブ型の新しい DbConstantExpression 式を作成します。
public static System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression Constant (this System.Data.Entity.Core.Metadata.Edm.TypeUsage constantType, object value);
static member Constant : System.Data.Entity.Core.Metadata.Edm.TypeUsage * obj -> System.Data.Entity.Core.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 が有効な定数型のインスタンスではない、constantType がプリミティブ型を表さない、または値が constantType で表されるプリミティブ型とは異なるプリミティブ型である。
適用対象
Constant(Object)
指定した定数値を使用して新しい DbConstantExpression を作成します。
public static System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression Constant (object value);
static member Constant : obj -> System.Data.Entity.Core.Common.CommandTrees.DbConstantExpression
Public Function Constant (value As Object) As DbConstantExpression
パラメーター
- value
- Object
表現する定数値。
戻り値
特定の値を持つ新しい DbConstantExpression。
例外
値が null です。
value は、有効な定数型のインスタンスではありません。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework