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

定义行结构和数值的“字符串-DbExpression 键-值”(string-DbExpression key-value)对列表。

返回

表示行构造的新 DbNewInstanceExpression。

属性

例外

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

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

适用于