Class EquatableKeyValue<TKey>
- Namespace
- Microsoft.EntityFrameworkCore.Update
- Assembly
- Microsoft.EntityFrameworkCore.dll
Objects of this type contain a key value corresponding to a Metadata item and implement Equals(object?) that return true only for other objects corresponding to the same Metadata item.
public sealed class EquatableKeyValue<TKey>
Type Parameters
TKey
The underlying key type.
- Inheritance
-
EquatableKeyValue<TKey>
- Inherited Members
Constructors
EquatableKeyValue(IAnnotatable, TKey?, IEqualityComparer<TKey>)
Creates a new instance of EquatableKeyValue<TKey>
public EquatableKeyValue(IAnnotatable metadata, TKey? keyValue, IEqualityComparer<TKey> keyComparer)
Parameters
metadata
IAnnotatableThe associated metadata.
keyValue
TKeyThe underlying key value.
keyComparer
IEqualityComparer<TKey>The key comparer.
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()