Add MetaData Table From ExistData
Change to use MySQL
This commit is contained in:
parent
89de09d213
commit
a0b3b13074
136 changed files with 3438 additions and 1237 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue