Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

DbExpressionBuilder.NewRow Method

.NET Framework 4.6 and 4.5

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 Shared Function NewRow ( _
	columnValues As IEnumerable(Of KeyValuePair(Of String, DbExpression)) _
) As DbNewInstanceExpression


Type: System.Collections.Generic.IEnumerable(Of KeyValuePair(Of 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.


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.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft