共用方式為


IDependentKeyValueFactory<TKey>.TryCreateFromBuffer 方法

定義

嘗試使用來自指定 ValueBuffer 之 的外鍵值來建立索引鍵實例。

public bool TryCreateFromBuffer (in Microsoft.EntityFrameworkCore.Storage.ValueBuffer valueBuffer, out TKey key);
public bool TryCreateFromBuffer (in Microsoft.EntityFrameworkCore.Storage.ValueBuffer? valueBuffer, out TKey? key);
abstract member TryCreateFromBuffer : ValueBuffer * 'Key -> bool
Public Function TryCreateFromBuffer (valueBuffer As ValueBuffer, ByRef key As TKey) As Boolean

參數

valueBuffer
ValueBuffer

表示實體實例的值緩衝區。

key
TKey

索引鍵實例。

傳回

true 如果已建立金鑰實例,則為 ; false 否則。

適用於