hrms-api-backend/BMA.EHR.Infrastructure/Persistence/ApplicationDBContext.cs

41 lines
1 KiB
C#
Raw Normal View History

2023-06-05 20:22:51 +07:00
using BMA.EHR.Application.Common.Interfaces;
2023-06-25 18:36:02 +07:00
using BMA.EHR.Domain.Entities.MetaData.BloodGroup;
using BMA.EHR.Domain.Entities.MetaData.Prefix;
2023-06-05 20:22:51 +07:00
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Infrastructure.Persistence
{
2023-06-25 18:36:02 +07:00
public class ApplicationDBContext : DbContext, IApplicationDBContext
2023-06-05 20:22:51 +07:00
{
public ApplicationDBContext(DbContextOptions<ApplicationDBContext> options)
: base(options)
{
}
2023-06-25 18:36:02 +07:00
#region " Prefix "
2023-06-05 20:22:51 +07:00
2023-06-25 18:36:02 +07:00
public DbSet<PrefixEntity> MD_Prefixes { get; set; }
public DbSet<PrefixDraftEntity> MD_Prefix_Drafts { get; set; }
public DbSet<PrefixPublishHistoryEntity> MD_Prefix_Histories { get; set; }
#endregion
#region " BloodGroups "
public DbSet<BloodGroupEntity> MD_BloodGroups { get; set; }
public DbSet<BloodGroupDraftEntity> MD_BloodGroup_Drafts { get; set; }
public DbSet<BloodGroupPublishHistoryEntity> MD_BloodGroup_Histories { get; set; }
#endregion
public Task<int> SaveChangesAsync()
2023-06-05 20:22:51 +07:00
{
return base.SaveChangesAsync();
}
}
}