IModelCacheKeyFactory.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework