using SnapshotWinFormsApp.Entities.NewHotline; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SnapshotWinFormsApp.Repository.Interfaces; public interface IRepository where T : class, new() { ISugarQueryable Queryable(); T GetById(int id); List GetAll(); } public interface IBaseRepository where T : Entity, new() { ISugarQueryable Queryable(); T GetById(int id); Task> GetAllAsync(CancellationToken token); Task InsertAsync(T entity, CancellationToken token); void Update(T entity); }