DbExpressionBuilder.Variable(TypeUsage, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立新的 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,表示具有指定名稱及型別之變數的參考。 運算式的結果類型會與 類型相同。