DbPropertyExpression.ToKeyValuePair 方法

定義

根據這個屬性表達式建立新的鍵值對。

public:
 System::Collections::Generic::KeyValuePair<System::String ^, System::Data::Common::CommandTrees::DbExpression ^> ToKeyValuePair();
public System.Collections.Generic.KeyValuePair<string,System.Data.Common.CommandTrees.DbExpression> ToKeyValuePair();
member this.ToKeyValuePair : unit -> System.Collections.Generic.KeyValuePair<string, System.Data.Common.CommandTrees.DbExpression>
Public Function ToKeyValuePair () As KeyValuePair(Of String, DbExpression)

傳回

一個新的鍵值對,鍵值與值分別由 衍生出。DbPropertyExpression

備註

在回傳的鍵值對中,鍵值是一個字串值,即被參考屬性的名稱,而 DbExpression 值則是屬性運算式本身。

適用於