using System.Threading.Tasks; namespace DMS.Infrastructure.Interfaces { public interface IDbContext { // Define common database operations here, e.g., // Task GetByIdAsync(int id) where TEntity : class; // Task AddAsync(TEntity entity) where TEntity : class; // Task UpdateAsync(TEntity entity) where TEntity : class; // Task DeleteAsync(TEntity entity) where TEntity : class; // ITransaction GetClient(); // This should NOT be here if you want to hide SqlSugar // For now, we'll just keep it empty or add methods as needed. // The primary goal is to abstract away ITransaction. // The ITransaction already handles transactions. } }