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>

新的相等比较器。

适用于