語言

IPrincipalKeyValueFactory<TKey>.CreateFromCurrentValues 方法

定義

從給定條目的鍵值建立一個鍵物件。

public TKey? CreateFromCurrentValues(Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry);
public TKey CreateFromCurrentValues(Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry);
abstract member CreateFromCurrentValues : Microsoft.EntityFrameworkCore.Update.IUpdateEntry -> 'Key
Public Function CreateFromCurrentValues (entry As IUpdateEntry) As TKey

參數

entry
IUpdateEntry

該條目追蹤實體實例。

傳回

TKey

鍵值。

適用於