This commit is contained in:
Suphonchai Phoonsawat 2023-06-28 12:58:45 +07:00
parent ea6cfb0e98
commit b0228a5277
8 changed files with 9381 additions and 112 deletions

View file

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Partial.Test
{
public partial class PartialClass
{
public string GetString()
{
return "Return from class1";
}
}
}

View file

@ -1,10 +1,5 @@
using BMA.EHR.Domain.Common;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BMA.EHR.API.Command
{

View file

@ -1,6 +1,7 @@
using BMA.EHR.Application.Common.Interfaces;
using BMA.EHR.Domain.Models.MetaData;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Application.Repositories
{
@ -13,5 +14,12 @@ namespace BMA.EHR.Application.Repositories
_dbContext = dbContext;
_httpContextAccessor = httpContextAccessor;
}
public async Task<IEnumerable<Prefix>> FindByNameAsync(string name)
{
var data = await _dbContext.Set<Prefix>().Where(x => x.Name == name).ToListAsync();
return data;
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class testaddmigrationfromcli : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

View file

@ -74,7 +74,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("DeploymentChannels", (string)null);
b.ToTable("DeploymentChannels");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b =>
@ -108,7 +108,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Documents", (string)null);
b.ToTable("Documents");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b =>
@ -164,7 +164,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("LimitLeaves", (string)null);
b.ToTable("LimitLeaves");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b =>
@ -230,7 +230,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("TypeLeaveId");
b.ToTable("LimitTypeLeaves", (string)null);
b.ToTable("LimitTypeLeaves");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b =>
@ -704,7 +704,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("LimitLeaveId");
b.ToTable("Profiles", (string)null);
b.ToTable("Profiles");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b =>
@ -785,7 +785,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileAbilitys", (string)null);
b.ToTable("ProfileAbilitys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b =>
@ -866,7 +866,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileAbilityId");
b.ToTable("ProfileAbilityHistorys", (string)null);
b.ToTable("ProfileAbilityHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b =>
@ -995,7 +995,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileAddressHistories", (string)null);
b.ToTable("ProfileAddressHistories");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessment", b =>
@ -1084,7 +1084,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileAssessments", (string)null);
b.ToTable("ProfileAssessments");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory", b =>
@ -1173,7 +1173,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileAssessmentId");
b.ToTable("ProfileAssessmentHistorys", (string)null);
b.ToTable("ProfileAssessmentHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAvatarHistory", b =>
@ -1235,7 +1235,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileAvatarHistories", (string)null);
b.ToTable("ProfileAvatarHistories");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificate", b =>
@ -1315,7 +1315,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileCertificates", (string)null);
b.ToTable("ProfileCertificates");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCertificateHistory", b =>
@ -1395,7 +1395,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileCertificateId");
b.ToTable("ProfileCertificateHistorys", (string)null);
b.ToTable("ProfileCertificateHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeName", b =>
@ -1480,7 +1480,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileChangeNames", (string)null);
b.ToTable("ProfileChangeNames");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory", b =>
@ -1565,7 +1565,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileChangeNameId");
b.ToTable("ProfileChangeNameHistorys", (string)null);
b.ToTable("ProfileChangeNameHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildren", b =>
@ -1642,7 +1642,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileChildrens", (string)null);
b.ToTable("ProfileChildrens");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileChildrenHistory", b =>
@ -1724,7 +1724,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileFamilyHistoryId");
b.ToTable("ProfileChildrenHistories", (string)null);
b.ToTable("ProfileChildrenHistories");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCoupleHistory", b =>
@ -1764,7 +1764,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileCoupleHistory", (string)null);
b.ToTable("ProfileCoupleHistory");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory", b =>
@ -1803,7 +1803,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileCurrentAddressHistories", (string)null);
b.ToTable("ProfileCurrentAddressHistories");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDiscipline", b =>
@ -1880,7 +1880,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileDisciplines", (string)null);
b.ToTable("ProfileDisciplines");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory", b =>
@ -1957,7 +1957,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileDisciplineId");
b.ToTable("ProfileDisciplineHistorys", (string)null);
b.ToTable("ProfileDisciplineHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDuty", b =>
@ -2030,7 +2030,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileDutys", (string)null);
b.ToTable("ProfileDutys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileDutyHistory", b =>
@ -2103,7 +2103,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileDutyId");
b.ToTable("ProfileDutyHistorys", (string)null);
b.ToTable("ProfileDutyHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducation", b =>
@ -2232,7 +2232,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileEducations", (string)null);
b.ToTable("ProfileEducations");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileEducationHistory", b =>
@ -2361,7 +2361,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileEducationId");
b.ToTable("ProfileEducationHistorys", (string)null);
b.ToTable("ProfileEducationHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFamilyHistory", b =>
@ -2486,7 +2486,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileFamilyHistory", (string)null);
b.ToTable("ProfileFamilyHistory");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileFatherHistory", b =>
@ -2526,7 +2526,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileFatherHistory", (string)null);
b.ToTable("ProfileFatherHistory");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory", b =>
@ -2667,7 +2667,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileGovernmentHistory", (string)null);
b.ToTable("ProfileGovernmentHistory");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHistory", b =>
@ -2810,7 +2810,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileHistory", (string)null);
b.ToTable("ProfileHistory");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonor", b =>
@ -2881,7 +2881,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileHonors", (string)null);
b.ToTable("ProfileHonors");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileHonorHistory", b =>
@ -2952,7 +2952,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileHonorId");
b.ToTable("ProfileHonorHistorys", (string)null);
b.ToTable("ProfileHonorHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsignia", b =>
@ -3062,7 +3062,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileInsignias", (string)null);
b.ToTable("ProfileInsignias");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory", b =>
@ -3172,7 +3172,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileInsigniaId");
b.ToTable("ProfileInsigniaHistorys", (string)null);
b.ToTable("ProfileInsigniaHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeave", b =>
@ -3262,7 +3262,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("TypeLeaveId");
b.ToTable("ProfileLeaves", (string)null);
b.ToTable("ProfileLeaves");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileLeaveHistory", b =>
@ -3352,7 +3352,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("TypeLeaveId");
b.ToTable("ProfileLeaveHistorys", (string)null);
b.ToTable("ProfileLeaveHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileMotherHistory", b =>
@ -3392,7 +3392,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileMotherHistory", (string)null);
b.ToTable("ProfileMotherHistory");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaid", b =>
@ -3461,7 +3461,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileNopaids", (string)null);
b.ToTable("ProfileNopaids");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileNopaidHistory", b =>
@ -3530,7 +3530,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileNopaidId");
b.ToTable("ProfileNopaidHistorys", (string)null);
b.ToTable("ProfileNopaidHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOrganization", b =>
@ -3590,7 +3590,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("ProfileOrganizations", (string)null);
b.ToTable("ProfileOrganizations");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOther", b =>
@ -3655,7 +3655,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileOthers", (string)null);
b.ToTable("ProfileOthers");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileOtherHistory", b =>
@ -3720,7 +3720,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileOtherId");
b.ToTable("ProfileOtherHistorys", (string)null);
b.ToTable("ProfileOtherHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfilePaper", b =>
@ -3794,7 +3794,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfilePapers", (string)null);
b.ToTable("ProfilePapers");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory", b =>
@ -3833,7 +3833,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileRegistrationAddressHistories", (string)null);
b.ToTable("ProfileRegistrationAddressHistories");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalary", b =>
@ -3974,7 +3974,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileSalaries", (string)null);
b.ToTable("ProfileSalaries");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryHistory", b =>
@ -4169,7 +4169,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileSalaryId");
b.ToTable("ProfileSalaryHistories", (string)null);
b.ToTable("ProfileSalaryHistories");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization", b =>
@ -4186,7 +4186,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("ProfileSalaryOrganizations", (string)null);
b.ToTable("ProfileSalaryOrganizations");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPosition", b =>
@ -4208,7 +4208,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("PositionId");
b.ToTable("ProfileSalaryPositions", (string)null);
b.ToTable("ProfileSalaryPositions");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel", b =>
@ -4225,7 +4225,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("ProfileSalaryPositionLevels", (string)null);
b.ToTable("ProfileSalaryPositionLevels");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber", b =>
@ -4242,7 +4242,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("ProfileSalaryPositionsNumbers", (string)null);
b.ToTable("ProfileSalaryPositionsNumbers");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType", b =>
@ -4259,7 +4259,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("ProfileSalaryPositionTypes", (string)null);
b.ToTable("ProfileSalaryPositionTypes");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTraining", b =>
@ -4363,7 +4363,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileId");
b.ToTable("ProfileTrainings", (string)null);
b.ToTable("ProfileTrainings");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileTrainingHistory", b =>
@ -4467,7 +4467,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProfileTrainingId");
b.ToTable("ProfileTrainingHistorys", (string)null);
b.ToTable("ProfileTrainingHistorys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.TypeLeave", b =>
@ -4523,7 +4523,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("TypeLeaves", (string)null);
b.ToTable("TypeLeaves");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.BloodGroup", b =>
@ -4587,7 +4587,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("BloodGroups", (string)null);
b.ToTable("BloodGroups");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.District", b =>
@ -4656,7 +4656,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ProvinceId");
b.ToTable("Districts", (string)null);
b.ToTable("Districts");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.EducationLevel", b =>
@ -4720,7 +4720,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("EducationLevels", (string)null);
b.ToTable("EducationLevels");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Gender", b =>
@ -4784,7 +4784,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Genders", (string)null);
b.ToTable("Genders");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Holiday", b =>
@ -4869,7 +4869,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Holidays", (string)null);
b.ToTable("Holidays");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Insignia", b =>
@ -4956,7 +4956,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("InsigniaTypeId");
b.ToTable("Insignias", (string)null);
b.ToTable("Insignias");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.InsigniaType", b =>
@ -5020,7 +5020,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("InsigniaTypes", (string)null);
b.ToTable("InsigniaTypes");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationAgency", b =>
@ -5084,7 +5084,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationAgencys", (string)null);
b.ToTable("OrganizationAgencys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationFax", b =>
@ -5148,7 +5148,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationFaxs", (string)null);
b.ToTable("OrganizationFaxs");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency", b =>
@ -5212,7 +5212,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationGovernmentAgencys", (string)null);
b.ToTable("OrganizationGovernmentAgencys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationLevel", b =>
@ -5276,7 +5276,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationLevels", (string)null);
b.ToTable("OrganizationLevels");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", b =>
@ -5346,7 +5346,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationOrganizations", (string)null);
b.ToTable("OrganizationOrganizations");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationShortName", b =>
@ -5429,7 +5429,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationShortNames", (string)null);
b.ToTable("OrganizationShortNames");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationStatus", b =>
@ -5493,7 +5493,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationStatuses", (string)null);
b.ToTable("OrganizationStatuses");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal", b =>
@ -5557,7 +5557,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationTelExternals", (string)null);
b.ToTable("OrganizationTelExternals");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal", b =>
@ -5621,7 +5621,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationTelInternals", (string)null);
b.ToTable("OrganizationTelInternals");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.OrganizationType", b =>
@ -5685,7 +5685,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationTypes", (string)null);
b.ToTable("OrganizationTypes");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PhysicalStatus", b =>
@ -5749,7 +5749,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PhysicalStatuses", (string)null);
b.ToTable("PhysicalStatuses");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Position", b =>
@ -5851,7 +5851,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("PositionTypeId");
b.ToTable("Positions", (string)null);
b.ToTable("Positions");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup", b =>
@ -5915,7 +5915,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionEmployeeGroups", (string)null);
b.ToTable("PositionEmployeeGroups");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel", b =>
@ -5979,7 +5979,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionEmployeeLevels", (string)null);
b.ToTable("PositionEmployeeLevels");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine", b =>
@ -6043,7 +6043,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionEmployeeLines", (string)null);
b.ToTable("PositionEmployeeLines");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition", b =>
@ -6113,7 +6113,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionEmployeePositions", (string)null);
b.ToTable("PositionEmployeePositions");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide", b =>
@ -6183,7 +6183,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionEmployeePositionSides", (string)null);
b.ToTable("PositionEmployeePositionSides");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus", b =>
@ -6247,7 +6247,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionEmployeeStatuses", (string)null);
b.ToTable("PositionEmployeeStatuses");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutive", b =>
@ -6311,7 +6311,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionExecutives", (string)null);
b.ToTable("PositionExecutives");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide", b =>
@ -6381,7 +6381,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionExecutiveSides", (string)null);
b.ToTable("PositionExecutiveSides");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLevel", b =>
@ -6457,7 +6457,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionLevels", (string)null);
b.ToTable("PositionLevels");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionLine", b =>
@ -6521,7 +6521,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionLines", (string)null);
b.ToTable("PositionLines");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPath", b =>
@ -6591,7 +6591,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionPaths", (string)null);
b.ToTable("PositionPaths");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionPathSide", b =>
@ -6661,7 +6661,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionPathSides", (string)null);
b.ToTable("PositionPathSides");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionStatus", b =>
@ -6725,7 +6725,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionStatuss", (string)null);
b.ToTable("PositionStatuss");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.PositionType", b =>
@ -6789,7 +6789,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionTypes", (string)null);
b.ToTable("PositionTypes");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Prefix", b =>
@ -6853,7 +6853,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Prefixes", (string)null);
b.ToTable("Prefixes");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Province", b =>
@ -6917,7 +6917,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Provinces", (string)null);
b.ToTable("Provinces");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Relationship", b =>
@ -6981,7 +6981,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Relationships", (string)null);
b.ToTable("Relationships");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Religion", b =>
@ -7045,7 +7045,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Religions", (string)null);
b.ToTable("Religions");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.Royal", b =>
@ -7116,7 +7116,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Royals", (string)null);
b.ToTable("Royals");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalHierarchy", b =>
@ -7180,7 +7180,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("RoyalHierarchys", (string)null);
b.ToTable("RoyalHierarchys");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.RoyalType", b =>
@ -7244,7 +7244,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("RoyalTypes", (string)null);
b.ToTable("RoyalTypes");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.MetaData.SubDistrict", b =>
@ -7320,7 +7320,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("DistrictId");
b.ToTable("SubDistricts", (string)null);
b.ToTable("SubDistricts");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity", b =>
@ -7384,7 +7384,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("PositionMasterId");
b.ToTable("AvailablePositionLevels", (string)null);
b.ToTable("AvailablePositionLevels");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationEntity", b =>
@ -7521,7 +7521,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("ParentId");
b.ToTable("Organizations", (string)null);
b.ToTable("Organizations");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", b =>
@ -7602,7 +7602,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("PositionMasterId");
b.ToTable("OrganizationPositions", (string)null);
b.ToTable("OrganizationPositions");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity", b =>
@ -7666,7 +7666,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("OrganizationPublishHistories", (string)null);
b.ToTable("OrganizationPublishHistories");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterEntity", b =>
@ -7789,7 +7789,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionMasters", (string)null);
b.ToTable("PositionMasters");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity", b =>
@ -7917,7 +7917,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("PositionMasterEntityId");
b.ToTable("PositionMasterHistoryEntity", (string)null);
b.ToTable("PositionMasterHistoryEntity");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", b =>
@ -7980,7 +7980,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("PositionNumbers", (string)null);
b.ToTable("PositionNumbers");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.ProfilePosition", b =>
@ -8040,7 +8040,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("OrganizationPositionId");
b.ToTable("ProfilePositions", (string)null);
b.ToTable("ProfilePositions");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2", b =>
@ -8208,7 +8208,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Report2s", (string)null);
b.ToTable("Report2s");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory", b =>
@ -8263,7 +8263,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasKey("Id");
b.ToTable("Report2DetailHistories", (string)null);
b.ToTable("Report2DetailHistories");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Organizations.Report2.Report2History", b =>
@ -8456,7 +8456,7 @@ namespace BMA.EHR.Infrastructure.Migrations
b.HasIndex("Report2DetailHistoryId");
b.ToTable("Report2Histories", (string)null);
b.ToTable("Report2Histories");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b =>

View file

@ -84,7 +84,6 @@ var builder = WebApplication.CreateBuilder(args);
{
options.SuppressAsyncSuffixInActionNames = false;
})
.RegisterCommandControllers()
.AddNewtonsoftJson(x => x.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore);
builder.Services.AddSwaggerGen();

View file

@ -15,7 +15,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{F3C2F68F-8DC
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Service", "Service", "{FA618F0C-1AF5-49AB-AE13-C020B403B64F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BMA.EHR.API.Command", "BMA.EHR.API.Command\BMA.EHR.API.Command.csproj", "{FC7215BD-5651-4226-9210-8894E8FA8767}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BMA.EHR.API.Command", "BMA.EHR.API.Command\BMA.EHR.API.Command.csproj", "{FC7215BD-5651-4226-9210-8894E8FA8767}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BMA.EHR.Appointment.Service", "BMA.EHR.Appointment.Service\BMA.EHR.Appointment.Service.csproj", "{B1A65F4F-2355-4320-B8DE-2C498D3ACC22}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -43,6 +45,10 @@ Global
{FC7215BD-5651-4226-9210-8894E8FA8767}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FC7215BD-5651-4226-9210-8894E8FA8767}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FC7215BD-5651-4226-9210-8894E8FA8767}.Release|Any CPU.Build.0 = Release|Any CPU
{B1A65F4F-2355-4320-B8DE-2C498D3ACC22}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B1A65F4F-2355-4320-B8DE-2C498D3ACC22}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B1A65F4F-2355-4320-B8DE-2C498D3ACC22}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B1A65F4F-2355-4320-B8DE-2C498D3ACC22}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -54,6 +60,7 @@ Global
{939DD34A-C7AE-406E-B557-33F69AC64127} = {FA618F0C-1AF5-49AB-AE13-C020B403B64F}
{FA618F0C-1AF5-49AB-AE13-C020B403B64F} = {F3C2F68F-8DC8-45A3-825B-24F17867D380}
{FC7215BD-5651-4226-9210-8894E8FA8767} = {F3C2F68F-8DC8-45A3-825B-24F17867D380}
{B1A65F4F-2355-4320-B8DE-2C498D3ACC22} = {FA618F0C-1AF5-49AB-AE13-C020B403B64F}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3111A492-1818-4438-B718-75199D8E779A}