DbExpressionBuilder.BindAs(DbExpression, String) Méthode

Définition

Crée une DbExpressionBinding qui utilise le nom de variable spécifié pour lier l’expression donnée.

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

Paramètres

input
DbExpression

Expression à lier.

varName
String

Nom de variable qui doit être utilisé pour la liaison.

Retours

Nouvelle expression qui lie l'expression spécifiée avec un nom de variable.

Exceptions

input ou varName est null.

input n'a pas de résultat de collection.

S’applique à