Udostępnij za pośrednictwem


SqlServerEntityTypeExtensions.SetHistoryTableName Metoda

Definicja

Przeciążenia

SetHistoryTableName(IMutableEntityType, String)

Ustawia wartość reprezentującą nazwę tabeli historii skojarzonej z jednostką zamapowana na tabelę czasową.

SetHistoryTableName(IConventionEntityType, String, Boolean)

Ustawia wartość reprezentującą nazwę tabeli historii skojarzonej z jednostką zamapowana na tabelę czasową.

SetHistoryTableName(IMutableEntityType, String)

Ustawia wartość reprezentującą nazwę tabeli historii skojarzonej z jednostką zamapowana na tabelę czasową.

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)

Parametry

entityType
IMutableEntityType

Typ jednostki.

historyTableName
String

Wartość do ustawienia.

Dotyczy

SetHistoryTableName(IConventionEntityType, String, Boolean)

Ustawia wartość reprezentującą nazwę tabeli historii skojarzonej z jednostką zamapowana na tabelę czasową.

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

Parametry

entityType
IConventionEntityType

Typ jednostki.

historyTableName
String

Wartość do ustawienia.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Skonfigurowana wartość.

Dotyczy