DbExpressionBuilder.BindAs(DbExpression, String) 方法

定义

创建使用指定变量名称绑定给定表达式的新 DbExpressionBinding 变量。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbExpressionBinding ^ BindAs(System::Data::Common::CommandTrees::DbExpression ^ input, System::String ^ varName);
public static System.Data.Common.CommandTrees.DbExpressionBinding BindAs(this System.Data.Common.CommandTrees.DbExpression input, string varName);
static member BindAs : System.Data.Common.CommandTrees.DbExpression * string -> System.Data.Common.CommandTrees.DbExpressionBinding
<Extension()>
Public Function BindAs (input As DbExpression, varName As String) As DbExpressionBinding

参数

input
DbExpression

要绑定的表达式。

varName
String

应用于绑定的变量名称。

返回

具有指定表达式和变量名称的新表达式绑定。

例外

inputvarName 为 null。

input 没有集合结果。

适用于