2023-11-13 16:56:17 +07:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BMA.EHR.Application.Common.Interfaces
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface ILeaveDbContext
|
|
|
|
|
|
{
|
|
|
|
|
|
DbSet<T> Set<T>() where T : class;
|
|
|
|
|
|
|
|
|
|
|
|
void Attatch<T>(T entity) where T : class;
|
|
|
|
|
|
|
2024-09-13 09:56:30 +07:00
|
|
|
|
void Detach<T>(T entity) where T : class;
|
|
|
|
|
|
|
2023-11-13 16:56:17 +07:00
|
|
|
|
Task<int> SaveChangesAsync();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|