Share via


ModelCacheKeyFactory.Create Method

Definition

Overloads

Create(DbContext)

Gets the model cache key for a given context.

Create(DbContext, Boolean)

Gets the model cache key for a given context.

Create(DbContext)

Gets the model cache key for a given context.

public virtual object Create (Microsoft.EntityFrameworkCore.DbContext context);
abstract member Create : Microsoft.EntityFrameworkCore.DbContext -> obj
override this.Create : Microsoft.EntityFrameworkCore.DbContext -> obj
Public Overridable Function Create (context As DbContext) As Object

Parameters

context
DbContext

The context to get the model cache key for.

Returns

The created key.

Implements

Applies to

Create(DbContext, Boolean)

Gets the model cache key for a given context.

public virtual object Create (Microsoft.EntityFrameworkCore.DbContext context, bool designTime);
abstract member Create : Microsoft.EntityFrameworkCore.DbContext * bool -> obj
override this.Create : Microsoft.EntityFrameworkCore.DbContext * bool -> obj
Public Overridable Function Create (context As DbContext, designTime As Boolean) As Object

Parameters

context
DbContext

The context to get the model cache key for.

designTime
Boolean

Whether the model should contain design-time configuration.

Returns

The created key.

Implements

Applies to