語言

IDependentKeyValueFactory<TKey>.TryCreateFromCurrentValues 方法

定義

嘗試使用給定 IUpdateEntry的外鍵值建立金鑰實例。

public bool TryCreateFromCurrentValues(Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, out TKey? key);
public bool TryCreateFromCurrentValues(Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, out TKey key);
abstract member TryCreateFromCurrentValues : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * 'Key -> bool
Public Function TryCreateFromCurrentValues (entry As IUpdateEntry, ByRef key As TKey) As Boolean

參數

entry
IUpdateEntry

該條目追蹤實體實例。

key
TKey

關鍵時刻。

傳回

true 如果創建了關鍵實例; false 否則,

適用於