Delen via


PropertyExtensions.CreateKeyEqualityComparer<TProperty> Method

Definition

Creates an IEqualityComparer<T> for values of the given property type.

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)

Type Parameters

TProperty

The property type.

Parameters

property
IProperty

The property.

Returns

IEqualityComparer<TProperty>

A new equality comparer.

Applies to