ModelCacheKey ModelCacheKey Class

Definition

A key that uniquely identifies the model for a given context. This is used to store and lookup a cached model for a given context. This default implementation uses the context type as they key, thus assuming that all contexts of a given type have the same model.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class ModelCacheKey
Public Class ModelCacheKey
Inheritance
System.ObjectSystem.Object
ModelCacheKeyModelCacheKey

Constructors

ModelCacheKey(DbContext) ModelCacheKey(DbContext)

Initializes a new instance of the ModelCacheKey class.

Methods

Equals(ModelCacheKey) Equals(ModelCacheKey)

Determines if this key is equivalent to a given key (i.e. if they are for the same context type).

Equals(Object) Equals(Object)

Determines if this key is equivalent to a given object (i.e. if they are keys for the same context type).

System.Object.Equals(System.Object, System.Object) System.Object.Equals(System.Object, System.Object) Inherited from System.Object
GetHashCode() GetHashCode()

Gets the hash code for the key.

System.Object.GetType() System.Object.GetType() Inherited from System.Object
System.Object.MemberwiseClone() System.Object.MemberwiseClone() Inherited from System.Object
System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) Inherited from System.Object
System.Object.ToString() System.Object.ToString() Inherited from System.Object