แก้สมัครสอบ
This commit is contained in:
parent
afc0cd830c
commit
07903d3b67
30 changed files with 3471 additions and 771 deletions
|
|
@ -34,36 +34,36 @@ namespace BMA.EHR.Recurit.Exam.Service.Data
|
|||
|
||||
}
|
||||
}
|
||||
public DbSet<BMA.EHR.Profile.Service.Models.HR.ProfileOrganization> ProfileOrganizations { get; set; }
|
||||
public DbSet<BMA.EHR.Profile.Service.Models.HR.Profile> Profiles { get; set; }
|
||||
public DbSet<BMA.EHR.Profile.Service.Models.HR.ProfileSalary> ProfileSalaries { get; set; }
|
||||
public DbSet<BMA.EHR.Profile.Service.Models.HR.OrganizationEntity> Organizations { get; set; }
|
||||
// public DbSet<BMA.EHR.Profile.Service.Models.HR.ProfileOrganization> ProfileOrganizations { get; set; }
|
||||
// public DbSet<BMA.EHR.Profile.Service.Models.HR.Profile> Profiles { get; set; }
|
||||
// public DbSet<BMA.EHR.Profile.Service.Models.HR.ProfileSalary> ProfileSalaries { get; set; }
|
||||
// public DbSet<BMA.EHR.Profile.Service.Models.HR.OrganizationEntity> Organizations { get; set; }
|
||||
|
||||
public DbSet<Prefix> Prefixes { get; set; }
|
||||
// public DbSet<Prefix> Prefixes { get; set; }
|
||||
|
||||
public DbSet<Religion> Religions { get; set; }
|
||||
// public DbSet<Religion> Religions { get; set; }
|
||||
|
||||
public DbSet<EducationLevel> EducationLevels { get; set; }
|
||||
// public DbSet<EducationLevel> EducationLevels { get; set; }
|
||||
|
||||
public DbSet<Relationship> Relationships { get; set; }
|
||||
// public DbSet<Relationship> Relationships { get; set; }
|
||||
|
||||
public DbSet<Province> Provinces { get; set; }
|
||||
// public DbSet<Province> Provinces { get; set; }
|
||||
|
||||
public DbSet<District> Districts { get; set; }
|
||||
// public DbSet<District> Districts { get; set; }
|
||||
|
||||
public DbSet<SubDistrict> SubDistricts { get; set; }
|
||||
// public DbSet<SubDistrict> SubDistricts { get; set; }
|
||||
|
||||
public DbSet<OrganizationOrganization> OrganizationOrganizations { get; set; }
|
||||
// public DbSet<OrganizationOrganization> OrganizationOrganizations { get; set; }
|
||||
|
||||
public DbSet<OrganizationShortName> OrganizationShortNames { get; set; }
|
||||
// public DbSet<OrganizationShortName> OrganizationShortNames { get; set; }
|
||||
public DbSet<Placement> Placements { get; set; }
|
||||
public DbSet<PlacementCertificate> PlacementCertificates { get; set; }
|
||||
public DbSet<PlacementEducation> PlacementEducations { get; set; }
|
||||
public DbSet<PlacementIsProperty> PlacementIsProperties { get; set; }
|
||||
public DbSet<PlacementProfile> PlacementProfiles { get; set; }
|
||||
public DbSet<PlacementType> PlacementTypes { get; set; }
|
||||
public DbSet<PositionPath> PositionPaths { get; set; }
|
||||
public DbSet<Gender> Genders { get; set; }
|
||||
// public DbSet<PositionPath> PositionPaths { get; set; }
|
||||
// public DbSet<Gender> Genders { get; set; }
|
||||
public DbSet<Document> Documents { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1146,9 +1146,15 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations
|
|||
b.Property<Guid?>("PeriodExamId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("PositionLevel")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("PositionName")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("PositionType")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("Prefix")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
|
|
@ -2727,7 +2733,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations
|
|||
modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Career", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Candidate", "Candidate")
|
||||
.WithMany()
|
||||
.WithMany("Careers")
|
||||
.HasForeignKey("CandidateId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
|
@ -2938,6 +2944,8 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations
|
|||
|
||||
modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Candidate", b =>
|
||||
{
|
||||
b.Navigation("Careers");
|
||||
|
||||
b.Navigation("Educations");
|
||||
});
|
||||
|
||||
|
|
|
|||
46
Data/OrgDbContext.cs
Normal file
46
Data/OrgDbContext.cs
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
using BMA.EHR.Recurit.Exam.Service.Models;
|
||||
using BMA.EHR.Recurit.Exam.Service.Models.Documents;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using BMA.EHR.Domain.Models.Placement;
|
||||
|
||||
namespace BMA.EHR.Recurit.Exam.Service.Data
|
||||
{
|
||||
public class OrgDbContext : DbContext
|
||||
{
|
||||
public OrgDbContext(DbContextOptions<OrgDbContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
}
|
||||
|
||||
// The following configures EF to create a Sqlite database file in the
|
||||
// special "local" folder for your platform.
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder options)
|
||||
{
|
||||
if (!options.IsConfigured)
|
||||
{
|
||||
var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production";
|
||||
var configurationBuilder = new ConfigurationBuilder()
|
||||
.AddJsonFile("appsettings.json", optional: true, true)
|
||||
.AddJsonFile($"appsettings.{environment}.json", true, true)
|
||||
.AddEnvironmentVariables()
|
||||
.Build();
|
||||
|
||||
var historyConnection = configurationBuilder.GetConnectionString("HistoryConnection");
|
||||
options.UseMySql(historyConnection, ServerVersion.AutoDetect(historyConnection));
|
||||
|
||||
}
|
||||
}
|
||||
public DbSet<Prefix> prefixe { get; set; }
|
||||
public DbSet<Religion> religion { get; set; }
|
||||
public DbSet<EducationLevel> educationLevel { get; set; }
|
||||
public DbSet<Relationship> relationship { get; set; }
|
||||
public DbSet<Province> province { get; set; }
|
||||
public DbSet<District> district { get; set; }
|
||||
public DbSet<SubDistrict> subDistrict { get; set; }
|
||||
public DbSet<Gender> gender { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue