临时提交

This commit is contained in:
2025-07-19 09:25:01 +08:00
parent e1a89e7c70
commit 01fe2e14ef
52 changed files with 499 additions and 370 deletions

View File

@@ -0,0 +1,18 @@
using System.Threading.Tasks;
namespace DMS.Core.Interfaces
{
public interface IDbContext
{
// Define common database operations here, e.g.,
// Task<TEntity> GetByIdAsync<TEntity>(int id) where TEntity : class;
// Task AddAsync<TEntity>(TEntity entity) where TEntity : class;
// Task UpdateAsync<TEntity>(TEntity entity) where TEntity : class;
// Task DeleteAsync<TEntity>(TEntity entity) where TEntity : class;
// SqlSugarClient 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 SqlSugarClient.
// The IUnitOfWork already handles transactions.
}
}