IModelCacheKeyFactory IModelCacheKeyFactory Interface

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 interface is typically used by database providers (and other extensions). It is generally not used in application code.

public interface IModelCacheKeyFactory
Public Interface IModelCacheKeyFactory

Methods

Create(DbContext) Create(DbContext)

Gets the model cache key for a given context.

object Create(DbContext context)
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.