add Oracle = Leave Service

This commit is contained in:
Suphonchai Phoonsawat 2024-05-03 13:35:36 +07:00
parent 18d75f4b04
commit f5558747d8
450 changed files with 882 additions and 2451185 deletions

View file

@ -352,6 +352,12 @@ namespace BMA.EHR.Infrastructure.Persistence
public ApplicationDBContext(DbContextOptions<ApplicationDBContext> options) : base(options)
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
}
public Task<int> SaveChangesAsync()

View file

@ -19,6 +19,7 @@ namespace BMA.EHR.Infrastructure.Persistence
public class ApplicationDBExamContext : DbContext, IApplicationDBExamContext
{
#region " From Existing Database "
public DbSet<Candidate> Candidates { get; set; }
public DbSet<Career> Careers { get; set; }
public DbSet<Education> Educations { get; set; }

View file

@ -1,4 +1,5 @@
using BMA.EHR.Application.Common.Interfaces;
using BMA.EHR.Domain.Models.Documents;
using BMA.EHR.Domain.Models.Leave.Commons;
using BMA.EHR.Domain.Models.Leave.Requests;
using BMA.EHR.Domain.Models.Leave.TimeAttendants;
@ -35,9 +36,14 @@ namespace BMA.EHR.Infrastructure.Persistence
#endregion
public LeaveDbContext(DbContextOptions<LeaveDbContext> options) : base(options)
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
}
public Task<int> SaveChangesAsync()