ListComparer<TElement> Class
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.
A ValueComparer<T> for lists of primitive items. The list can be typed as IEnumerable<T>, but can only be used with instances that implement IList<T>.
public sealed class ListComparer<TElement> : Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer<System.Collections.Generic.IEnumerable<TElement>>
type ListComparer<'Element> = class
inherit ValueComparer<seq<'Element>>
Public NotInheritable Class ListComparer(Of TElement)
Inherits ValueComparer(Of IEnumerable(Of TElement))
- TElement
The element type.
- Inheritance
This comparer should be used for reference types and non-nullable value types. Use NullableValueTypeListComparer<TElement> for nullable value types.
See EF Core value comparers for more information and examples.
List |
Creates a new instance of the list comparer. |
Constructor |
The expression representing construction of this object. (Inherited from ValueComparer<T>) |
Element |
The comparer to use for comparing elements. |
Equals |
The comparison expression. (Inherited from ValueComparer<T>) |
Hash |
The hash code expression. (Inherited from ValueComparer<T>) |
Object |
The object comparison expression. (Inherited from ValueComparer<T>) |
Snapshot |
The snapshot expression. (Inherited from ValueComparer<T>) |
Type |
The type. (Inherited from ValueComparer<T>) |
Equals(Object, Object) |
Compares the two instances to determine if they are equal. (Inherited from ValueComparer<T>) |
Equals(T, T) |
Compares the two instances to determine if they are equal. (Inherited from ValueComparer<T>) |
Extract |
Takes EqualsExpression and replaces the two parameters with the given expressions, returning the transformed body. (Inherited from ValueComparer) |
Extract |
Takes the HashCodeExpression and replaces the parameter with the given expression, returning the transformed body. (Inherited from ValueComparer) |
Extract |
Takes the SnapshotExpression and replaces the parameter with the given expression, returning the transformed body. (Inherited from ValueComparer) |
Get |
Returns the hash code for the given instance. (Inherited from ValueComparer<T>) |
Get |
Returns the hash code for the given instance. (Inherited from ValueComparer<T>) |
Snapshot(Object) |
Creates a snapshot of the given instance. (Inherited from ValueComparer<T>) |
Snapshot(T) |
Creates a snapshot of the given instance. (Inherited from ValueComparer<T>) |
Is |
Returns |
Product | Versions |
---|---|
Entity Framework Core | 8.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: