PropertyExtensions.GetKeyValueComparer(IProperty) 方法

定義

ValueComparer取得要與這個屬性索引鍵搭配使用的 ,如果未設定,則 null 為 。

public static Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer GetKeyValueComparer (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetKeyValueComparer : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer
<Extension()>
Public Function GetKeyValueComparer (property As IProperty) As ValueComparer

參數

property
IProperty

屬性。

傳回

比較子,如果尚未設定,則 null 為 。

適用於