hrms-api-backend/BMA.EHR.Application/Common/Interfaces/IApplicationDBContext.cs

14 lines
276 B
C#
Raw Permalink Normal View History

2023-11-16 13:17:54 +07:00
using Microsoft.EntityFrameworkCore;
2023-06-05 20:22:51 +07:00
namespace BMA.EHR.Application.Common.Interfaces
{
2023-06-25 18:36:02 +07:00
public interface IApplicationDBContext
2023-06-25 18:48:28 +07:00
{
DbSet<T> Set<T>() where T : class;
void Attatch<T>(T entity) where T : class;
2023-06-25 18:36:02 +07:00
Task<int> SaveChangesAsync();
2023-06-05 20:22:51 +07:00
}
}