共用方式為


PropertyExtensions.CreateKeyEqualityComparer<TProperty> 方法

定義

IEqualityComparer<T>為指定屬性類型的值建立 。

public static System.Collections.Generic.IEqualityComparer<TProperty> CreateKeyEqualityComparer<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member CreateKeyEqualityComparer : Microsoft.EntityFrameworkCore.Metadata.IProperty -> System.Collections.Generic.IEqualityComparer<'Property>
<Extension()>
Public Function CreateKeyEqualityComparer(Of TProperty) (property As IProperty) As IEqualityComparer(Of TProperty)

類型參數

TProperty

屬性型別。

參數

property
IProperty

屬性。

傳回

IEqualityComparer<TProperty>

新的相等比較子。

適用於