Language

TemporalTableBuilder<TEntity>.HasPeriodEnd Method

Definition

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalPeriodPropertyBuilder HasPeriodEnd(System.Linq.Expressions.Expression<Func<TEntity,DateTime>> propertyExpression);
override this.HasPeriodEnd : System.Linq.Expressions.Expression<Func<'Entity, DateTime>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalPeriodPropertyBuilder
Public Overridable Function HasPeriodEnd (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 end property (blog => blog.PeriodEnd).

Returns

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

Remarks

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

Applies to