SqlServerEntityTypeBuilderExtensions.IsTemporal Method

Definition

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