Model​Cache​Key​Factory Model​Cache​Key​Factory Class

Definition

Creates keys 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 ModelCacheKeyFactory : IModelCacheKeyFactoryPublic Class ModelCacheKeyFactory
    Implements IModelCacheKeyFactory
Inheritance
System.ObjectSystem.Object
ModelCacheKeyFactoryModelCacheKeyFactory
Implements

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Methods

Create(DbContext) Create(DbContext)

Gets the model cache key for a given context.

public virtual object Create(DbContext context)Public Overridable Function Create(context As DbContext) As Object
Parameters
context
DbContext DbContext

The context to get the model cache key for.

Returns
System.Object System.Object

The created key.