Restructure TAble

This commit is contained in:
Suphonchai Phoonsawat 2023-06-25 18:36:02 +07:00
parent 717b0f0a8e
commit 1ba2f2eec1
37 changed files with 1107 additions and 527 deletions

View file

@ -1,14 +1,23 @@
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.Application.Common.Interfaces
{
public interface IApplicationDBContext
{
DbSet<PrefixEntity> Prefixes { get; set; }
public interface IApplicationDBContext
{
DbSet<PrefixEntity> MD_Prefixes { get; set; }
DbSet<BloodGroupEntity> BloodGroups { get; set; }
DbSet<PrefixDraftEntity> MD_Prefix_Drafts { get; set; }
Task<int> SaveChangesAsync();
DbSet<PrefixPublishHistoryEntity> MD_Prefix_Histories { get; set; }
DbSet<BloodGroupEntity> MD_BloodGroups { get; set; }
DbSet<BloodGroupDraftEntity> MD_BloodGroup_Drafts { get; set; }
DbSet<BloodGroupPublishHistoryEntity> MD_BloodGroup_Histories { get; set; }
Task<int> SaveChangesAsync();
}
}

View file

@ -1,4 +1,6 @@
namespace BMA.EHR.Application.Common.Interfaces
using BMA.EHR.Domain.Common;
namespace BMA.EHR.Application.Common.Interfaces
{
public interface IGenericRepository<S,T> where T : class
{