Share via


DbExpressionBuilder.Constant メソッド

定義

オーバーロード

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 は、有効な定数型のインスタンスではありません。

適用対象