Share via


ModelCacheKey.Equals Method

Definition

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)

Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs

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)

Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs
Source:
ModelCacheKey.cs

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