IModelCacheKeyFactory.Create 方法

定义

重载

Create(DbContext)
已过时.

获取给定上下文的模型缓存键。

Create(DbContext, Boolean)

获取给定上下文的模型缓存键。

Create(DbContext)

注意

Use the overload with most parameters

获取给定上下文的模型缓存键。

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

参数

context
DbContext

要获取其模型缓存密钥的上下文。

返回

创建的密钥。

属性

适用于

Create(DbContext, Boolean)

获取给定上下文的模型缓存键。

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

参数

context
DbContext

要获取其模型缓存密钥的上下文。

designTime
Boolean

模型是否应包含设计时配置。

返回

创建的密钥。

适用于