SqlServerEntityTypeBuilderExtensions.IsTemporal 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.
Configures the table as temporal.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? IsTemporal (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, bool temporal = true, bool fromDataAnnotation = false);
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
<Extension()>
Public Function IsTemporal (entityTypeBuilder As IConventionEntityTypeBuilder, Optional temporal As Boolean = true, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder
Parameters
- entityTypeBuilder
- IConventionEntityTypeBuilder
The builder for the entity being configured.
- temporal
- Boolean
A value indicating whether the table is temporal.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The same builder instance if the configuration was applied,
null
otherwise.
Remarks
See Using SQL Server memory-optimized tables with EF Core for more information and examples.
Applies to
Entity Framework