Language

TemporalTableBuilder<TEntity>.HasPeriodStart Method

Definition

Returns an object that can be used to configure a period start property of the entity type mapped to a temporal table.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalPeriodPropertyBuilder HasPeriodStart(System.Linq.Expressions.Expression<Func<TEntity,DateTime>> propertyExpression);
override this.HasPeriodStart : System.Linq.Expressions.Expression<Func<'Entity, DateTime>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalPeriodPropertyBuilder
Public Overridable Function HasPeriodStart (propertyExpression As Expression(Of Func(Of TEntity, DateTime))) As TemporalPeriodPropertyBuilder

Parameters

propertyExpression
Expression<Func<TEntity,DateTime>>

A lambda expression representing the property to be configured as the period start property (blog => blog.PeriodStart).

Returns

An object that can be used to configure the period start property.

Remarks

See Using SQL Server temporal tables with EF Core for more information and examples.

Applies to