DbExpressionBuilder.NewRow 方法

定義

建立一個新資料 DbNewInstanceExpression ,產生一列指定命名欄位及指定值,並以表達式形式指定。

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

一串定義列結構與值的 string-DbExpression 鍵值對。

傳回

一個新的 DbNewInstanceExpression,代表該列的建構。

例外狀況

columnValues 是空,或包含欄位名稱或表達式為空的元素。

columnValues 為空,或包含重複或無效欄位名稱。

適用於