Condividi tramite


SqlServerEntityTypeExtensions.SetHistoryTableName Metodo

Definizione

Overload

SetHistoryTableName(IMutableEntityType, String)

Imposta un valore che rappresenta il nome della tabella di cronologia associata all'entità mappata a una tabella temporale.

SetHistoryTableName(IConventionEntityType, String, Boolean)

Imposta un valore che rappresenta il nome della tabella di cronologia associata all'entità mappata a una tabella temporale.

SetHistoryTableName(IMutableEntityType, String)

Imposta un valore che rappresenta il nome della tabella di cronologia associata all'entità mappata a una tabella temporale.

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)

Parametri

entityType
IMutableEntityType

Tipo di entità.

historyTableName
String

Il valore da impostare.

Si applica a

SetHistoryTableName(IConventionEntityType, String, Boolean)

Imposta un valore che rappresenta il nome della tabella di cronologia associata all'entità mappata a una tabella temporale.

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

Parametri

entityType
IConventionEntityType

Tipo di entità.

historyTableName
String

Il valore da impostare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Il valore configurato.

Si applica a