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