230 lines
7.8 KiB
C#
230 lines
7.8 KiB
C#
using BMA.EHR.MetaData.Service.Models;
|
|
using BMA.EHR.Organization.Service.Models.Report2;
|
|
using BMA.EHR.Profile.Service.Models;
|
|
using BMA.EHR.Profile.Service.Models.HR;
|
|
using BMA.EHR.Recruit.Service.Models.Documents;
|
|
using BMA.EHR.Recruit.Service.Models.Recruits;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace BMA.EHR.Report.Service.Data
|
|
{
|
|
public class EHRDbContext : DbContext
|
|
{
|
|
public EHRDbContext(DbContextOptions<EHRDbContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
//base.OnModelCreating(modelBuilder);
|
|
|
|
//modelBuilder.Ignore<Document>();
|
|
//modelBuilder.Ignore<RecruitImport>();
|
|
//modelBuilder.Ignore<Recruit.Service.Models.Recruits.Recruit>();
|
|
//modelBuilder.Ignore<RecruitAddress>();
|
|
//modelBuilder.Ignore<RecruitOccupation>();
|
|
//modelBuilder.Ignore<RecruitCertificate>();
|
|
//modelBuilder.Ignore<RecruitEducation>();
|
|
//modelBuilder.Ignore<ScoreImport>();
|
|
//modelBuilder.Ignore<RecruitScore>();
|
|
//modelBuilder.Ignore<RecruitPayment>();
|
|
//modelBuilder.Ignore<RecruitDocument>();
|
|
//modelBuilder.Ignore<RecruitImportHistory>();
|
|
}
|
|
|
|
public DbSet<Document> Documents { get; set; }
|
|
|
|
#region " From Existing DB "
|
|
|
|
public DbSet<AvailablePositionLevelEntity> AvailablePositionLevels { get; set; }
|
|
|
|
public DbSet<PositionMasterEntity> PositionMasters { get; set; }
|
|
|
|
public DbSet<OrganizationEntity> Organizations { get; set; }
|
|
|
|
public DbSet<PositionNumberEntity> PositionNumbers { get; set; }
|
|
|
|
public DbSet<OrganizationPositionEntity> OrganizationPositions { get; set; }
|
|
|
|
public DbSet<Prefix> Prefixes { get; set; }
|
|
|
|
public DbSet<BloodGroup> BloodGroups { get; set; }
|
|
|
|
public DbSet<Gender> Genders { get; set; }
|
|
|
|
public DbSet<PhysicalStatus> PhysicalStatuses { get; set; }
|
|
|
|
public DbSet<Religion> Religions { get; set; }
|
|
|
|
public DbSet<EducationLevel> EducationLevels { get; set; }
|
|
|
|
public DbSet<PositionPath> PositionPaths { get; set; }
|
|
|
|
public DbSet<PositionType> PositionTypes { get; set; }
|
|
|
|
public DbSet<PositionEmployeePosition> PositionEmployeePositions { get; set; }
|
|
|
|
public DbSet<PositionEmployeePositionSide> PositionEmployeePositionSides { get; set; }
|
|
|
|
public DbSet<PositionEmployeeGroup> PositionEmployeeGroups { get; set; }
|
|
|
|
public DbSet<PositionEmployeeLine> PositionEmployeeLines { get; set; }
|
|
|
|
public DbSet<PositionEmployeeLevel> PositionEmployeeLevels { get; set; }
|
|
|
|
public DbSet<PositionEmployeeStatus> PositionEmployeeStatuses { get; set; }
|
|
|
|
public DbSet<PositionLine> PositionLines { get; set; }
|
|
|
|
public DbSet<PositionExecutive> PositionExecutives { get; set; }
|
|
|
|
public DbSet<PositionStatus> PositionStatuss { get; set; }
|
|
|
|
public DbSet<PositionLevel> PositionLevels { get; set; }
|
|
|
|
public DbSet<Relationship> Relationships { get; set; }
|
|
|
|
public DbSet<Position> Positions { get; set; }
|
|
|
|
public DbSet<PositionPathSide> PositionPathSides { get; set; }
|
|
|
|
public DbSet<PositionExecutiveSide> PositionExecutiveSides { get; set; }
|
|
|
|
public DbSet<InsigniaType> InsigniaTypes { get; set; }
|
|
|
|
public DbSet<Insignia> Insignias { get; set; }
|
|
|
|
public DbSet<Province> Provinces { get; set; }
|
|
|
|
public DbSet<District> Districts { get; set; }
|
|
|
|
public DbSet<SubDistrict> SubDistricts { get; set; }
|
|
|
|
public DbSet<Holiday> Holidays { get; set; }
|
|
|
|
public DbSet<OrganizationType> OrganizationTypes { get; set; }
|
|
|
|
public DbSet<OrganizationLevel> OrganizationLevels { get; set; }
|
|
|
|
public DbSet<OrganizationOrganization> OrganizationOrganizations { get; set; }
|
|
|
|
public DbSet<OrganizationShortName> OrganizationShortNames { get; set; }
|
|
|
|
public DbSet<OrganizationStatus> OrganizationStatuses { get; set; }
|
|
|
|
public DbSet<OrganizationAgency> OrganizationAgencys { get; set; }
|
|
|
|
public DbSet<OrganizationGovernmentAgency> OrganizationGovernmentAgencys { get; set; }
|
|
|
|
public DbSet<OrganizationTelExternal> OrganizationTelExternals { get; set; }
|
|
|
|
public DbSet<OrganizationTelInternal> OrganizationTelInternals { get; set; }
|
|
|
|
public DbSet<OrganizationFax> OrganizationFaxs { get; set; }
|
|
|
|
public DbSet<RoyalHierarchy> RoyalHierarchys { get; set; }
|
|
|
|
public DbSet<RoyalType> RoyalTypes { get; set; }
|
|
|
|
public DbSet<Royal> Royals { get; set; }
|
|
|
|
#endregion
|
|
|
|
public DbSet<Profile.Service.Models.HR.Profile> Profiles { get; set; }
|
|
|
|
public DbSet<ProfileEducation> ProfileEducations { get; set; }
|
|
|
|
public DbSet<ProfileEducationHistory> ProfileEducationHistorys { get; set; }
|
|
|
|
public DbSet<ProfileHonor> ProfileHonors { get; set; }
|
|
|
|
public DbSet<ProfileHonorHistory> ProfileHonorHistorys { get; set; }
|
|
|
|
public DbSet<ProfileAssessment> ProfileAssessments { get; set; }
|
|
|
|
public DbSet<ProfileAssessmentHistory> ProfileAssessmentHistorys { get; set; }
|
|
|
|
public DbSet<ProfileDiscipline> ProfileDisciplines { get; set; }
|
|
|
|
public DbSet<ProfileDisciplineHistory> ProfileDisciplineHistorys { get; set; }
|
|
|
|
public DbSet<ProfileCertificate> ProfileCertificates { get; set; }
|
|
|
|
public DbSet<ProfileCertificateHistory> ProfileCertificateHistorys { get; set; }
|
|
|
|
public DbSet<ProfileTraining> ProfileTrainings { get; set; }
|
|
|
|
public DbSet<ProfileTrainingHistory> ProfileTrainingHistorys { get; set; }
|
|
|
|
public DbSet<ProfileInsignia> ProfileInsignias { get; set; }
|
|
|
|
public DbSet<ProfileInsigniaHistory> ProfileInsigniaHistorys { get; set; }
|
|
|
|
public DbSet<ProfileSalary> ProfileSalaries { get; set; }
|
|
|
|
public DbSet<ProfileSalaryHistory> ProfileSalaryHistories { get; set; }
|
|
|
|
public DbSet<ProfileSalaryOrganization> ProfileSalaryOrganizations { get; set; }
|
|
|
|
public DbSet<ProfileSalaryPosition> ProfileSalaryPositions { get; set; }
|
|
|
|
public DbSet<ProfileSalaryPositionNumber> ProfileSalaryPositionsNumbers { get; set; }
|
|
|
|
public DbSet<ProfileHistory> ProfileHistory { get; set; }
|
|
|
|
public DbSet<ProfileCoupleHistory> ProfileCoupleHistory { get; set; }
|
|
|
|
public DbSet<ProfileFatherHistory> ProfileFatherHistory { get; set; }
|
|
|
|
public DbSet<ProfileMotherHistory> ProfileMotherHistory { get; set; }
|
|
|
|
public DbSet<ProfileFamilyHistory> ProfileFamilyHistory { get; set; }
|
|
|
|
public DbSet<ProfileGovernmentHistory> ProfileGovernmentHistory { get; set; }
|
|
|
|
public DbSet<ProfileLeave> ProfileLeaves { get; set; }
|
|
|
|
public DbSet<ProfileLeaveHistory> ProfileLeaveHistorys { get; set; }
|
|
|
|
public DbSet<ProfileSalaryPositionLevel> ProfileSalaryPositionLevels { get; set; }
|
|
|
|
public DbSet<ProfileSalaryPositionType> ProfileSalaryPositionTypes { get; set; }
|
|
|
|
public DbSet<ProfileChildren> ProfileChildrens { get; set; }
|
|
|
|
public DbSet<ProfileChildrenHistory> ProfileChildrenHistories { get; set; }
|
|
|
|
public DbSet<ProfilePaper> ProfilePapers { get; set; }
|
|
|
|
public DbSet<ProfileCurrentAddressHistory> ProfileCurrentAddressHistories { get; set; }
|
|
|
|
public DbSet<ProfileRegistrationAddressHistory> ProfileRegistrationAddressHistories { get; set; }
|
|
|
|
public DbSet<ProfileAddressHistory> ProfileAddressHistories { get; set; }
|
|
|
|
public DbSet<ProfileOther> ProfileOthers { get; set; }
|
|
|
|
public DbSet<ProfileOtherHistory> ProfileOtherHistorys { get; set; }
|
|
|
|
public DbSet<ProfileAbility> ProfileAbilitys { get; set; }
|
|
|
|
public DbSet<ProfileAbilityHistory> ProfileAbilityHistorys { get; set; }
|
|
|
|
public DbSet<ProfileDuty> ProfileDutys { get; set; }
|
|
|
|
public DbSet<ProfileDutyHistory> ProfileDutyHistorys { get; set; }
|
|
|
|
public DbSet<ProfileNopaid> ProfileNopaids { get; set; }
|
|
|
|
public DbSet<ProfileNopaidHistory> ProfileNopaidHistorys { get; set; }
|
|
|
|
public DbSet<ProfileAvatarHistory> ProfileAvatarHistories { get; set; }
|
|
|
|
public DbSet<ProfilePosition> ProfilePositions { get; set; }
|
|
|
|
public DbSet<Report2> Report2s { get; set; }
|
|
public DbSet<Report2History> Report2Histories { get; set; }
|
|
public DbSet<Report2DetailHistory> Report2DetailHistories { get; set; }
|
|
}
|
|
}
|