2022-08-08 16:45:20 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model.DefaultData
|
|
|
|
|
{
|
|
|
|
|
internal static class DefaultContextData
|
|
|
|
|
{
|
|
|
|
|
public static void Fill(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
var fillers = new IEntityFiller[]
|
|
|
|
|
{
|
|
|
|
|
// Order does meter
|
|
|
|
|
new EntityFillerUserRole(),
|
|
|
|
|
new EntityFillerRelationUserRoleUserRole(),
|
|
|
|
|
new EntityFillerPermission(),
|
|
|
|
|
new EntityFillerRelationUserRolePermission(),
|
|
|
|
|
new EntityFillerUser(),
|
|
|
|
|
new EntityFillerRelationUserUserRole(),
|
|
|
|
|
new EntityFillerCompany(),
|
|
|
|
|
new EntityFillerWellOperationCategory(),
|
|
|
|
|
new EntityFillerFileCategory(),
|
|
|
|
|
new EntityFillerWellSectionType(),
|
|
|
|
|
new EntityFillerWellType(),
|
|
|
|
|
new EntityFillerMeasureCategory(),
|
|
|
|
|
new EntityFillerCompanyType(),
|
2022-08-15 01:17:00 +05:00
|
|
|
|
new EntityFillerSubsystem(),
|
2022-08-08 16:45:20 +05:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
foreach (var filler in fillers)
|
|
|
|
|
filler.FillData(modelBuilder);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|