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