SqlServerEntityTypeExtensions.SetIsTemporal Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetIsTemporal(IMutableEntityType, Boolean) |
Sets a value indicating whether the entity type is mapped to a temporal table. |
SetIsTemporal(IConventionEntityType, Nullable<Boolean>, Boolean) |
Sets a value indicating whether the entity type is mapped to a temporal table. |
SetIsTemporal(IMutableEntityType, Boolean)
Sets a value indicating whether the entity type is mapped to a temporal table.
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)
Parameters
- entityType
- IMutableEntityType
The entity type.
- temporal
- Boolean
The value to set.
Applies to
SetIsTemporal(IConventionEntityType, Nullable<Boolean>, Boolean)
Sets a value indicating whether the entity type is mapped to a temporal table.
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)
Parameters
- entityType
- IConventionEntityType
The entity type.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
Entity Framework