using Microsoft.EntityFrameworkCore; using PARR.Core.Extensions; using PARR.Domain.Common.Roles; using PARR.Domain.Common.Template; using PARR.Domain.Entities; using PARR.Domain.Entities.JobEntities; using PARR.Domain.Entities.JobGroupEntities; using PARR.Domain.Entities.RobotEntities; using PARR.Domain.Entities.Schedule; using PARR.Domain.Entities.TaskEntities; using PARR.Domain.Entities.TemplateEntities; using PARR.Domain.Entities.Unit; using PARR.Domain.Enums; using PARR.Domain.Settings; namespace PARR.DAL.Context { internal class DataContext : DbContext { public DataContext(DbContextOptions options) : base(options) { } public DbSet Processes { get; set; } public DbSet Subprocesses { get; set; } public DbSet Tnks { get; set; } public DbSet Setting { get; set; } public DbSet RobotConfigurations { get; set; } #region Schedule public DbSet EsppSchTypes { get; set; } public DbSet EsppSchTypeValues { get; set; } public DbSet EsppSchTypeConfigs { get; set; } public DbSet EsppSchTypeSchedules { get; set; } public DbSet EsppSchValues { get; set; } public DbSet ScheduleExcludeTypeCalendars { get; set; } public DbSet ScheduleExcludeTypes { get; set; } public DbSet ScheduleResponseAreaTimeOffsets { get; set; } public DbSet DistributionPeriods { get; set; } #endregion public DbSet AgentHistories { get; set; } public DbSet AgentHistoryLevels { get; set; } public DbSet Orders { get; set; } public DbSet OrderStatuses { get; set; } public DbSet Users { get; set; } public DbSet Roles { get; set; } public DbSet UsersInRoles { get; set; } public DbSet WeekendDays { get; set; } public DbSet ParrComponents { get; set; } #region Units public DbSet Units { get; set; } public DbSet UnitFields { get; set; } public DbSet UnitFieldValues { get; set; } public DbSet UnitInValues { get; set; } public DbSet UnitFieldInUnitFieldValues { get; set; } public DbSet UnitInUnits { get; set; } public DbSet UnitsInTemplates { get; set; } public DbSet UnitRegionalEkPtkGroups { get; set; } public DbSet UnitKiiUnits { get; set; } #endregion #region Job public DbSet FieldFilters { get; set; } public DbSet Jobs { get; set; } public DbSet JobUnitFilters { get; set; } public DbSet JobRelationshipFilters { get; set; } public DbSet JobAutoControls { get; set; } #endregion #region JobGroup public DbSet JobGroups { get; set; } public DbSet JobGroupTypes { get; set; } public DbSet JobGroupDistributionConfigs { get; set; } public DbSet JobGroupAutoControls { get; set; } public DbSet JobGroupUnitFilters { get; set; } public DbSet JobGroupFieldFilters { get; set; } public DbSet JobGroupRelationshipFilters { get; set; } #endregion #region Tasks public DbSet Tasks { get; set; } public DbSet TaskStatus { get; set; } public DbSet TaskTypes { get; set; } public DbSet TaskErrors { get; set; } #endregion #region Robot public DbSet RobotHistories { get; set; } public DbSet RobotHistoryLevels { get; set; } public DbSet Robots { get; set; } public DbSet TaskStatuses { get; set; } public DbSet RobotStatuses { get; set; } public DbSet RobotSnapshots { get; set; } public DbSet RobotConfigurationSnapshots { get; set; } #endregion #region Template public DbSet