Udostępnij za pośrednictwem


SqlServerEntityTypeExtensions.SetPeriodStartPropertyName Metoda

Definicja

Przeciążenia

SetPeriodStartPropertyName(IMutableEntityType, String)

Ustawia wartość reprezentującą nazwę właściwości początkowej okresu jednostki zamapowanej na tabelę czasową.

SetPeriodStartPropertyName(IConventionEntityType, String, Boolean)

Ustawia wartość reprezentującą nazwę właściwości początkowej okresu jednostki zamapowanej na tabelę czasową.

SetPeriodStartPropertyName(IMutableEntityType, String)

Ustawia wartość reprezentującą nazwę właściwości początkowej okresu jednostki zamapowanej na tabelę czasową.

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

Parametry

entityType
IMutableEntityType

Typ jednostki.

periodStartPropertyName
String

Wartość do ustawienia.

Dotyczy

SetPeriodStartPropertyName(IConventionEntityType, String, Boolean)

Ustawia wartość reprezentującą nazwę właściwości początkowej okresu jednostki zamapowanej na tabelę czasową.

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

Parametry

entityType
IConventionEntityType

Typ jednostki.

periodStartPropertyName
String

Wartość do ustawienia.

fromDataAnnotation
Boolean

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

Zwraca

Skonfigurowana wartość.

Dotyczy