using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.IDAL { public interface IBaseDAL where T : Entity.BaseEntity, new() { #region Get /// /// 查询全部 /// List GetAll(); /// /// 根据 Id查询 /// T GetById(long Id); /// /// 根据 Id集合查询 /// List GetByIds(IEnumerable Ids); #endregion #region Insert /// /// 插入 /// long Insert(T rhs); /// /// 批量插入 /// bool Inserts(IEnumerable list); /// /// 插入并返回 /// T InsertR(T rhs); /// /// 批量插入并返回 /// List InsertsR(IEnumerable list); #endregion #region Update /// /// 更新 /// bool Update(T rhs); /// /// 批量更新 /// bool Updates(IEnumerable list); #endregion #region Delete /// /// 根据 Id删除 /// bool DeleteById(long Id); /// /// 根据 Id集合删除 /// bool DeleteByIds(IEnumerable Ids); /// /// 删除 /// bool Delete(T rhs); /// /// 批量删除 /// bool Deletes(IEnumerable list); /// /// 删除全部 /// bool DeleteAll(); #endregion } }