共用方式為


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

索引鍵值。

適用於