DbExpressionBuilder.NewRow Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new DbNewInstanceExpression that produces a row with the specified named columns and the given values, specified as expressions.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public static System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression NewRow (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Data.Entity.Core.Common.CommandTrees.DbExpression>> columnValues);
static member NewRow : seq<System.Collections.Generic.KeyValuePair<string, System.Data.Entity.Core.Common.CommandTrees.DbExpression>> -> System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression
Public Function NewRow (columnValues As IEnumerable(Of KeyValuePair(Of String, DbExpression))) As DbNewInstanceExpression
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.
- Attributes
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
Entity Framework