using BMA.EHR.Application.Common.Interfaces; using BMA.EHR.Domain.Models.Discipline; using BMA.EHR.Domain.Models.MetaData; using BMA.EHR.Domain.Models.Organizations; // using BMA.EHR.Domain.Models.Discipline; using Microsoft.EntityFrameworkCore; namespace BMA.EHR.Infrastructure.Persistence { public class DisciplineDbContext : DbContext, IDisciplineDbContext { #region " Discipline " public DbSet DisciplineComplaints { get; set; } public DbSet DisciplineComplaint_Channels { get; set; } public DbSet DisciplineDirectors { get; set; } public DbSet DisciplineComplaint_Profiles { get; set; } public DbSet DisciplineComplaint_Docs { get; set; } public DbSet DisciplineInvestigates { get; set; } public DbSet DisciplineInvestigateExtends { get; set; } public DbSet DisciplineInvestigate_ProfileComplaints { get; set; } public DbSet DisciplineInvestigate_DocComplaints { get; set; } public DbSet DisciplineInvestigate_Docs { get; set; } public DbSet DisciplineInvestigate_Directors { get; set; } public DbSet DisciplineInvestigateRelevant_Docs { get; set; } public DbSet DisciplineDisciplinarys { get; set; } public DbSet DisciplineDisciplinaryExtends { get; set; } public DbSet DisciplineDisciplinary_ProfileComplaintInvestigates { get; set; } public DbSet DisciplineDisciplinary_DocInvestigateRelevants { get; set; } public DbSet DisciplineDisciplinary_DocInvestigates { get; set; } public DbSet DisciplineDisciplinary_DocComplaintInvestigates { get; set; } public DbSet DisciplineDisciplinary_DirectorInvestigates { get; set; } public DbSet DisciplineDisciplinary_DocSummaryEvidences { get; set; } public DbSet DisciplineDisciplinary_DocRecordAccusers { get; set; } public DbSet DisciplineDisciplinary_DocWitnessess { get; set; } public DbSet DisciplineDisciplinary_DocOthers { get; set; } public DbSet DisciplineDisciplinary_DocRelevants { get; set; } public DbSet DisciplineReport_Profiles { get; set; } public DbSet DisciplineComplaint_Appeals { get; set; } public DbSet DisciplineComplaint_Appeal_Docs { get; set; } public DbSet DisciplineComplaint_Appeal_Historys { get; set; } public DbSet Documents { get; set; } #endregion #region " Meta Data " public DbSet Prefixes { get; set; } public DbSet BloodGroups { get; set; } public DbSet Genders { get; set; } public DbSet PhysicalStatuses { get; set; } public DbSet Religions { get; set; } public DbSet EducationLevels { get; set; } public DbSet PositionPaths { get; set; } public DbSet PositionTypes { get; set; } public DbSet PositionEmployeePositions { get; set; } public DbSet PositionEmployeePositionSides { get; set; } public DbSet PositionEmployeeGroups { get; set; } public DbSet PositionEmployeeLines { get; set; } public DbSet PositionEmployeeLevels { get; set; } public DbSet PositionEmployeeStatuses { get; set; } public DbSet PositionLines { get; set; } public DbSet PositionExecutives { get; set; } public DbSet PositionStatuss { get; set; } public DbSet PositionLevels { get; set; } public DbSet Relationships { get; set; } public DbSet Positions { get; set; } public DbSet PositionPathSides { get; set; } public DbSet PositionExecutiveSides { get; set; } public DbSet InsigniaTypes { get; set; } public DbSet Insignias { get; set; } public DbSet Provinces { get; set; } public DbSet Districts { get; set; } public DbSet SubDistricts { get; set; } public DbSet Holidays { get; set; } public DbSet OrganizationTypes { get; set; } public DbSet OrganizationLevels { get; set; } public DbSet OrganizationOrganizations { get; set; } public DbSet OrganizationShortNames { get; set; } public DbSet OrganizationStatuses { get; set; } public DbSet OrganizationAgencys { get; set; } public DbSet OrganizationGovernmentAgencys { get; set; } public DbSet OrganizationTelExternals { get; set; } public DbSet OrganizationTelInternals { get; set; } public DbSet OrganizationFaxs { get; set; } public DbSet RoyalHierarchys { get; set; } public DbSet RoyalTypes { get; set; } public DbSet Royals { get; set; } #endregion #region " Organizations " public DbSet AvailablePositionLevels { get; set; } public DbSet PositionMasters { get; set; } public DbSet Organizations { get; set; } public DbSet PositionNumbers { get; set; } public DbSet OrganizationPositions { get; set; } public DbSet ProfilePositions { get; set; } #endregion public DisciplineDbContext(DbContextOptions options) : base(options) { } public Task SaveChangesAsync() { return base.SaveChangesAsync(); } public void Attatch(T entity) where T : class { Attach(entity); } } }