hrms-api-backend/BMA.EHR.Application/Common/Interfaces/IApplicationDBContext.cs
Suphonchai Phoonsawat 89de09d213 จัดระเบียบ Code ใหม่ และเพิ่ม Extension Method
implement GenericRepository Class ใหม่
2023-06-26 10:15:50 +07:00

33 lines
839 B
C#

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
{
#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();
}
}