ModelCacheKeyFactory.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) |
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework