SqlServerEntityTypeExtensions.SetHistoryTableSchema 方法

定义

重载

SetHistoryTableSchema(IMutableEntityType, String)

设置一个值,该值表示与映射到临时表的实体关联的历史记录表的架构。

SetHistoryTableSchema(IConventionEntityType, String, Boolean)

设置一个值,该值表示与映射到临时表的实体关联的历史记录表的架构。

SetHistoryTableSchema(IMutableEntityType, String)

设置一个值,该值表示与映射到临时表的实体关联的历史记录表的架构。

public static void SetHistoryTableSchema (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? historyTableSchema);
static member SetHistoryTableSchema : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetHistoryTableSchema (entityType As IMutableEntityType, historyTableSchema As String)

参数

entityType
IMutableEntityType

实体类型。

historyTableSchema
String

要设置的值。

适用于

SetHistoryTableSchema(IConventionEntityType, String, Boolean)

设置一个值,该值表示与映射到临时表的实体关联的历史记录表的架构。

public static string? SetHistoryTableSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? historyTableSchema, bool fromDataAnnotation = false);
static member SetHistoryTableSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Function SetHistoryTableSchema (entityType As IConventionEntityType, historyTableSchema As String, Optional fromDataAnnotation As Boolean = false) As String

参数

entityType
IConventionEntityType

实体类型。

historyTableSchema
String

要设置的值。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

配置的值。

适用于