public static void ConfigureDeactivatedDate <TEntity, TDependentEntity>(this OwnedNavigationBuilder <TEntity, TDependentEntity> @this)
            where TEntity : class, IAggregateRoot
            where TDependentEntity : class, IHasDeactivatedDate
        {
            @this.Property(e => e.Inactive)
            .IsRequired();

            @this.Property(e => e.DeactivatedDate)
            .IsRequired(false);
        }
 public static void ConfigureCreatedDate <TEntity, TDependentEntity>(this OwnedNavigationBuilder <TEntity, TDependentEntity> @this,
                                                                     bool requiredDate = true)
     where TEntity : class, IAggregateRoot
     where TDependentEntity : class, IHasCreatedDate
 {
     @this.Property(e => e.CreatedDate)
     .IsRequired(requiredDate);
 }
        public static void ConfigureUpdatedDate <TEntity, TDependentEntity, TKey>(this OwnedNavigationBuilder <TEntity, TDependentEntity> @this)
            where TEntity : class, IAggregateRoot
            where TDependentEntity : class, IHasUpdatedDate <TKey>
        {
            @this.ConfigureUpdatedDate();

            @this.Property(e => e.UpdatedBy)
            .IsRequired(false);
        }