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

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

static member NewRow : 
        columnValues:IEnumerable<KeyValuePair<string, DbExpression>> -> DbNewInstanceExpression


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

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
Available since 4.5
Return to top