DbExpressionBuilder::NewRow Method (IEnumerable<KeyValuePair<String^, DbExpression^>>^)

.NET Framework (current version)
 

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

Namespace:   System.Data.Common.CommandTrees.ExpressionBuilder
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public:
static DbNewInstanceExpression^ NewRow(
	IEnumerable<KeyValuePair<String^, DbExpression^>>^ columnValues
)

Parameters

columnValues
Type: System.Collections.Generic::IEnumerable<KeyValuePair<String^, DbExpression^>>^

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

Return Value

Type: System.Data.Common.CommandTrees::DbNewInstanceExpression^

A new DbNewInstanceExpression that represents the construction of the row.

Exception Condition
ArgumentNullException

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

ArgumentException

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

.NET Framework
Available since 4.5
Return to top
Show: