using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SolarPower.Repository.Interface { public interface IRepositoryBase where T : class { /// /// 透過Id,取得單一資料 /// /// /// Task GetOneAsync(int id); /// /// 取得所有資料 /// /// Task> GetAllAsync(); /// /// 新增資料 /// /// /// /// Task AddAsync(T entity, List properties); /// /// 新增單一筆資料 /// /// /// /// Task AddOneAsync(T entity, List properties); /// /// 修改資料 /// /// /// /// Task Update(T entity, List properties); /// /// 透過Id,軟刪除單一筆資料 /// /// /// Task DeleteOne(int id); /// /// 透過Id,實際刪除單一筆資料 /// /// /// Task PurgeOneAsync(int id); } }