DbExpressionBuilder.NewRow(IEnumerable<KeyValuePair<String,DbExpression>>) 方法
定义
创建一个新的 DbNewInstanceExpression,它生成具有指定的命名列和给定值的行,该行被指定为表达式。Creates a new DbNewInstanceExpression that produces a row with the specified named columns and the given values, specified as expressions.
public:
static System::Data::Common::CommandTrees::DbNewInstanceExpression ^ NewRow(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Data::Common::CommandTrees::DbExpression ^>> ^ columnValues);
public static System.Data.Common.CommandTrees.DbNewInstanceExpression NewRow (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Data.Common.CommandTrees.DbExpression>> columnValues);
static member NewRow : seq<System.Collections.Generic.KeyValuePair<string, System.Data.Common.CommandTrees.DbExpression>> -> System.Data.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)对列表。A list of string-DbExpression key-value pairs that defines the structure and values of the row.
返回
表示行构造的新 DbNewInstanceExpression。A new DbNewInstanceExpression that represents the construction of the row.
例外
columnValues 为 null,或者包含具有 null 列名或表达式的元素。columnValues is null or contains an element with a null column name or expression.
columnValues 为空,或者包含重复的或无效的列名称。columnValues is empty, or contains a duplicate or invalid column name.