ModelCacheKey.Equals 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.
Overloads
Equals(ModelCacheKey) |
Determines if this key is equivalent to a given key (i.e. if they are for the same context type). |
Equals(Object) |
Determines if this key is equivalent to a given object (i.e. if they are keys for the same context type). |
Equals(ModelCacheKey)
Determines if this key is equivalent to a given key (i.e. if they are for the same context type).
protected virtual bool Equals (Microsoft.EntityFrameworkCore.Infrastructure.ModelCacheKey other);
override this.Equals : Microsoft.EntityFrameworkCore.Infrastructure.ModelCacheKey -> bool
Protected Overridable Function Equals (other As ModelCacheKey) As Boolean
Parameters
- other
- ModelCacheKey
The key to compare this key to.
Returns
true
if the key is for the same context type, otherwise false
.
Applies to
Equals(Object)
Determines if this key is equivalent to a given object (i.e. if they are keys for the same context type).
public override bool Equals (object obj);
public override bool Equals (object? obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean
Parameters
- obj
- Object
The object to compare this key to.
Returns
true
if the object is a ModelCacheKey and is for the same context type, otherwise
false
.
Applies to
Entity Framework