OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity>.HasPeriodStart 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.
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.OwnedNavigationTemporalPeriodPropertyBuilder HasPeriodStart(System.Linq.Expressions.Expression<Func<TDependentEntity,DateTime>> propertyExpression);
override this.HasPeriodStart : System.Linq.Expressions.Expression<Func<'DependentEntity, DateTime>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalPeriodPropertyBuilder
Public Overridable Function HasPeriodStart (propertyExpression As Expression(Of Func(Of TDependentEntity, DateTime))) As OwnedNavigationTemporalPeriodPropertyBuilder
Parameters
- propertyExpression
- Expression<Func<TDependentEntity,DateTime>>
A lambda expression representing the property to be configured as the period start property
(entity => entity.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.