DbExpressionBuilder.BindAs(DbExpression, String) Méthode

Définition

Crée un nouveau 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 liaison d’expression avec l’expression et le nom de variable spécifiés.

Exceptions

input ou varName a la valeur Null.

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

S’applique à