Condividi tramite


SqlServerEntityTypeExtensions.SetIsTemporal Metodo

Definizione

Overload

SetIsTemporal(IMutableEntityType, Boolean)

Imposta un valore che indica se il tipo di entità è mappato a una tabella temporale.

SetIsTemporal(IConventionEntityType, Nullable<Boolean>, Boolean)

Imposta un valore che indica se il tipo di entità è mappato a una tabella temporale.

SetIsTemporal(IMutableEntityType, Boolean)

Imposta un valore che indica se il tipo di entità è mappato a una tabella temporale.

public static void SetIsTemporal (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, bool temporal);
static member SetIsTemporal : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * bool -> unit
<Extension()>
Public Sub SetIsTemporal (entityType As IMutableEntityType, temporal As Boolean)

Parametri

entityType
IMutableEntityType

Tipo di entità.

temporal
Boolean

Il valore da impostare.

Si applica a

SetIsTemporal(IConventionEntityType, Nullable<Boolean>, Boolean)

Imposta un valore che indica se il tipo di entità è mappato a una tabella temporale.

public static bool? SetIsTemporal (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool? temporal, bool fromDataAnnotation = false);
static member SetIsTemporal : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Function SetIsTemporal (entityType As IConventionEntityType, temporal As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)

Parametri

entityType
IConventionEntityType

Tipo di entità.

temporal
Nullable<Boolean>

Il valore da impostare.

fromDataAnnotation
Boolean

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

Restituisce

Il valore configurato.

Si applica a