SqlServerEntityTypeExtensions.SetHistoryTableName Method

Definition

Overloads

SetHistoryTableName(IMutableEntityType, String)

Sets a value representing the name of the history table associated with the entity mapped to a temporal table.

SetHistoryTableName(IConventionEntityType, String, Boolean)

Sets a value representing the name of the history table associated with the entity mapped to a temporal table.

SetHistoryTableName(IMutableEntityType, String)

Sets a value representing the name of the history table associated with the entity mapped to a temporal table.

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

Parameters

entityType
IMutableEntityType

The entity type.

historyTableName
String

The value to set.

Applies to

SetHistoryTableName(IConventionEntityType, String, Boolean)

Sets a value representing the name of the history table associated with the entity mapped to a temporal table.

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

Parameters

entityType
IConventionEntityType

The entity type.

historyTableName
String

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to