Language

DbExpressionBuilder.Variable(TypeUsage, String) メソッド

定義

指定した名前と型の変数を参照する新しい DbVariableReferenceExpression を作成します。

public static System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression Variable(this System.Data.Entity.Core.Metadata.Edm.TypeUsage type, string name);
static member Variable : System.Data.Entity.Core.Metadata.Edm.TypeUsage * string -> System.Data.Entity.Core.Common.CommandTrees.DbVariableReferenceExpression
<Extension()>
Public Function Variable (type As TypeUsage, name As String) As DbVariableReferenceExpression

パラメーター

type
TypeUsage

参照される変数の型。

name
String

参照先の変数の名前。

戻り値

指定した名前と型を持つ変数への参照を表す DbVariableReferenceExpression。 式の結果の型は型と同じになります。

適用対象