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

Имя переменной, которое должно использоваться для привязки.

Возвращаемое значение

Новая привязка выражения с указанным выражением и именем переменной.

Исключения

input или varName равно null.

input не имеет результата коллекции.

Применяется к