40 lines
1 KiB
C#
40 lines
1 KiB
C#
using BMA.EHR.Application.Common.Interfaces;
|
|
using BMA.EHR.Domain.Entities.MetaData.BloodGroup;
|
|
using BMA.EHR.Domain.Entities.MetaData.Prefix;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace BMA.EHR.Infrastructure.Persistence
|
|
{
|
|
public class ApplicationDBContext : DbContext, IApplicationDBContext
|
|
{
|
|
public ApplicationDBContext(DbContextOptions<ApplicationDBContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
#region " Prefix "
|
|
|
|
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()
|
|
{
|
|
return base.SaveChangesAsync();
|
|
}
|
|
}
|
|
}
|