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

指出是否使用資料批註來指定組態。

傳回

已設定的值。

適用於