Επεξεργασία

Κοινή χρήση μέσω


DbExpressionBuilder.NewRow Method

Definition

Creates a new DbNewInstanceExpression that produces a row with the specified named columns and the given values, specified as 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

Parameters

columnValues
IEnumerable<KeyValuePair<String,DbExpression>>

A list of string-DbExpression key-value pairs that defines the structure and values of the row.

Returns

A new DbNewInstanceExpression that represents the construction of the row.

Exceptions

columnValues is null or contains an element with a null column name or expression.

columnValues is empty, or contains a duplicate or invalid column name.

Applies to