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
|
|
|
|
{
|
2023-06-26 10:15:50 +07:00
|
|
|
|
DbSet<T> Set<T>() where T : class;
|
|
|
|
|
|
|
2023-08-04 09:47:58 +07:00
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|