Share via


IModelCacheKeyFactory.Create Method

Definition

Overloads

Create(DbContext)
Obsolete.

Gets the model cache key for a given context.

Create(DbContext, Boolean)

Gets the model cache key for a given context.

Create(DbContext)

Caution

Use the overload with most parameters

Gets the model cache key for a given context.

public object Create (Microsoft.EntityFrameworkCore.DbContext context);
[System.Obsolete("Use the overload with most parameters")]
public virtual object Create (Microsoft.EntityFrameworkCore.DbContext context);
abstract member Create : Microsoft.EntityFrameworkCore.DbContext -> obj
[<System.Obsolete("Use the overload with most parameters")>]
abstract member Create : Microsoft.EntityFrameworkCore.DbContext -> obj
override this.Create : Microsoft.EntityFrameworkCore.DbContext -> obj
Public Function Create (context As DbContext) As Object
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.

Attributes

Applies to

Create(DbContext, Boolean)

Gets the model cache key for a given context.

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

Applies to