feat(bll, dal): distributionPeriod - добавили типы, адаптировали методы
This commit is contained in:
@@ -362,10 +362,21 @@ namespace PARR.DAL.Context
|
||||
modelBuilder.Entity<DistributionPeriod>(f =>
|
||||
{
|
||||
f.HasData(
|
||||
new() { Id = new Guid("3A7341A8-085C-461C-BABC-6B78DD5D2C67"), Name = "Ежемесячно", Duration = new TimeSpan(28, 0, 0, 0) },
|
||||
new() { Id = new Guid("0AD2DFDB-3833-46D9-979A-C408B7EADC6C"), Name = "Каждые 90 дней", Duration = new TimeSpan(90, 0, 0, 0) }
|
||||
new() { Id = new Guid("3A7341A8-085C-461C-BABC-6B78DD5D2C67"), Name = "Ежемесячно", Duration = "1", Type = DistributionPeriodTypeEnum.Month.ToString() },
|
||||
new() { Id = new Guid("0AD2DFDB-3833-46D9-979A-C408B7EADC6C"), Name = "Каждые 90 дней", Duration = "90", Type = DistributionPeriodTypeEnum.Day.ToString() }
|
||||
);
|
||||
});
|
||||
|
||||
modelBuilder.Entity<DistributionPeriodType>(f =>
|
||||
{
|
||||
f.HasData(
|
||||
new() { Type = DistributionPeriodTypeEnum.Day.ToString(), Description = "День" },
|
||||
new() { Type = DistributionPeriodTypeEnum.Month.ToString(), Description = "Месяц" },
|
||||
new() { Type = DistributionPeriodTypeEnum.Year.ToString(), Description = "Год" }
|
||||
//new() { Type = DistributionPeriodTypeEnum.TimeSpan.ToString(), Description = "TimeSpan" }
|
||||
);
|
||||
});
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user