Add MetaData Table From ExistData

Change to use MySQL
This commit is contained in:
Suphonchai Phoonsawat 2023-06-26 14:02:04 +07:00
parent 89de09d213
commit a0b3b13074
136 changed files with 3438 additions and 1237 deletions

View file

@ -1,31 +1,10 @@
using BMA.EHR.Domain.Entities.MetaData.BloodGroup;
using BMA.EHR.Domain.Entities.MetaData.Prefix;
using BMA.EHR.Domain.Models.MetaData;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Application.Common.Interfaces
{
public interface IApplicationDBContext
{
#region " Prefix "
DbSet<PrefixEntity> MD_Prefixes { get; set; }
DbSet<PrefixDraftEntity> MD_Prefix_Drafts { get; set; }
DbSet<PrefixPublishHistoryEntity> MD_Prefix_Histories { get; set; }
#endregion
#region " BloodGroup "
DbSet<BloodGroupEntity> MD_BloodGroups { get; set; }
DbSet<BloodGroupDraftEntity> MD_BloodGroup_Drafts { get; set; }
DbSet<BloodGroupPublishHistoryEntity> MD_BloodGroup_Histories { get; set; }
#endregion
DbSet<T> Set<T>() where T : class;
Task<int> SaveChangesAsync();

View file

@ -8,5 +8,12 @@ namespace BMA.EHR.Application.Common.Interfaces
Task<T?> GetByIdAsync(S id);
Task<IReadOnlyList<T>> GetAllAsync();
}
Task<T> AddAsync(T entity);
Task<T> UpdateAsync(T entity);
Task DeleteAsync(T entity);
}
}