DbPropertyExpression.ToKeyValuePair 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據這個屬性表達式建立新的鍵值對。
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 值則是屬性運算式本身。