OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity>.HasPeriodEnd 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 end property of the entity type mapped to a temporal table.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalPeriodPropertyBuilder HasPeriodEnd(System.Linq.Expressions.Expression<Func<TDependentEntity,DateTime>> propertyExpression);
override this.HasPeriodEnd : System.Linq.Expressions.Expression<Func<'DependentEntity, DateTime>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalPeriodPropertyBuilder
Public Overridable Function HasPeriodEnd (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 end property
(entity => entity.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.