语言

DbExpressionBuilder.NewRow 方法

定义

创建一个新 DbNewInstanceExpression 值,该行生成具有指定命名列和给定值(指定为表达式)的行。

[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

参数

columnValues
IEnumerable<KeyValuePair<String,DbExpression>>

用于定义行的结构和值的 string-DbExpression 键值对的列表。

返回

一个新的 DbNewInstanceExpression,表示行的构造。

特性

例外

columnValues 为 null 或包含具有 null 列名或表达式的元素。

columnValues 为空,或包含重复或无效的列名。

适用于