DbExpressionBuilder.BindAs(DbExpression, String) Método

Definición

Crea un objeto DbExpressionBinding que usa el nombre de variable especificado para enlazar la expresión dada.

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

Parámetros

input
DbExpression

Expresión que se va a enlazar.

varName
String

Nombre de variable que se debe utilizar para el enlace.

Devoluciones

Nuevo enlace de expresiones con la expresión especificada y un nombre de variable.

Excepciones

input o varName es null.

input no tiene un resultado de la colección.

Se aplica a