DbExpressionBuilder.NewRow Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée une ligne qui produit une DbNewInstanceExpression ligne avec les colonnes nommées spécifiées et les valeurs spécifiées, spécifiées en tant qu’expressions.
public:
static System::Data::Common::CommandTrees::DbNewInstanceExpression ^ NewRow(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Data::Common::CommandTrees::DbExpression ^>> ^ columnValues);
public static System.Data.Common.CommandTrees.DbNewInstanceExpression NewRow(System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Data.Common.CommandTrees.DbExpression>> columnValues);
static member NewRow : seq<System.Collections.Generic.KeyValuePair<string, System.Data.Common.CommandTrees.DbExpression>> -> System.Data.Common.CommandTrees.DbNewInstanceExpression
Public Function NewRow (columnValues As IEnumerable(Of KeyValuePair(Of String, DbExpression))) As DbNewInstanceExpression
Paramètres
- columnValues
- IEnumerable<KeyValuePair<String,DbExpression>>
Liste de paires clé-valeur string-DbExpression qui définit la structure et les valeurs de la ligne.
Retours
Nouvelle DbNewInstanceExpression qui représente la construction de la ligne.
Exceptions
columnValues est null ou contient un élément avec un nom ou une expression de colonne Null.
columnValues est vide ou contient un nom de colonne en double ou non valide.