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

16 lines
327 B
C#
Raw Permalink Normal View History

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;
void Detach<T>(T entity) where T : class;
Task<int> SaveChangesAsync();
}
}