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 否则。

适用于