PropertyExtensions.CreateKeyEqualityComparer<TProperty> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework