DbExpressionBuilder.NewRow Method

Definition

Creates a new DbNewInstanceExpression that produces a row with the specified named columns and the given values, specified as expressions.

C#
public static System.Data.Common.CommandTrees.DbNewInstanceExpression NewRow(System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Data.Common.CommandTrees.DbExpression>> columnValues);

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

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1