IModelCacheKeyFactory IModelCacheKeyFactory Interface

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.

Syntax

Declaration

public interface IModelCacheKeyFactoryPublic Interface IModelCacheKeyFactory

Methods summary

Gets the model cache key for a given context.

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

    Returns

    • System.Object
      System.Object

      The created key.

Details

Assembly

Microsoft.EntityFrameworkCore.dll