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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework