DbExpressionBuilder.NewRow Method (IEnumerable(Of KeyValuePair(Of String, DbExpression)))

.NET Framework (current version)
 
System_CAPS_noteNote

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)

Public Shared Function NewRow (
	columnValues As IEnumerable(Of KeyValuePair(Of String, DbExpression))
) As DbNewInstanceExpression

Parameters

columnValues
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.

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: