Restructure TAble
This commit is contained in:
parent
717b0f0a8e
commit
1ba2f2eec1
37 changed files with 1107 additions and 527 deletions
|
|
@ -1,20 +1,38 @@
|
|||
using BMA.EHR.Application.Common.Interfaces;
|
||||
using BMA.EHR.Domain.Entities.MetaData;
|
||||
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 class ApplicationDBContext : DbContext, IApplicationDBContext
|
||||
{
|
||||
public ApplicationDBContext(DbContextOptions<ApplicationDBContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<PrefixEntity> Prefixes { get; set; }
|
||||
public DbSet<BloodGroupEntity> BloodGroups { get; set; }
|
||||
#region " Prefix "
|
||||
|
||||
public Task<int> SaveChangesAsync()
|
||||
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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue