Add Profile Table
This commit is contained in:
parent
aa691fe65f
commit
68dab7a727
69 changed files with 18537 additions and 84 deletions
9164
BMA.EHR.Infrastructure/Migrations/20230626081723_Add Exist Db to Project.Designer.cs
generated
Normal file
9164
BMA.EHR.Infrastructure/Migrations/20230626081723_Add Exist Db to Project.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,22 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddExistDbtoProject : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,9 @@
|
|||
using BMA.EHR.Application.Common.Interfaces;
|
||||
using BMA.EHR.Domain.Models.Documents;
|
||||
using BMA.EHR.Domain.Models.HR;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using BMA.EHR.Domain.Models.Organizations.Report2;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Persistence
|
||||
|
|
@ -101,6 +104,136 @@ namespace BMA.EHR.Infrastructure.Persistence
|
|||
|
||||
#endregion
|
||||
|
||||
#region " Organizations "
|
||||
|
||||
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<ProfilePosition> ProfilePositions { get; set; }
|
||||
|
||||
public DbSet<Report2> Report2s { get; set; }
|
||||
|
||||
public DbSet<Report2History> Report2Histories { get; set; }
|
||||
|
||||
public DbSet<Report2DetailHistory> Report2DetailHistories { get; set; }
|
||||
|
||||
public DbSet<OrganizationPublishHistoryEntity> OrganizationPublishHistories { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region " HR "
|
||||
|
||||
public DbSet<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<ProfileOrganization> ProfileOrganizations { get; set; }
|
||||
|
||||
public DbSet<ProfileChangeName> ProfileChangeNames { get; set; }
|
||||
|
||||
public DbSet<ProfileChangeNameHistory> ProfileChangeNameHistorys { get; set; }
|
||||
|
||||
public DbSet<TypeLeave> TypeLeaves { get; set; }
|
||||
|
||||
public DbSet<LimitLeave> LimitLeaves { get; set; }
|
||||
|
||||
public DbSet<LimitTypeLeave> LimitTypeLeaves { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
public ApplicationDBContext(DbContextOptions<ApplicationDBContext> options) : base(options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue