public bool DeleteIDs(List <int> ids) { var roleList = this.GetCurrentDbSession.RoleDal.LoadEntities(r => ids.Contains(r.ID)); foreach (QA.Model.Role role in roleList) { this.GetCurrentDbSession.RoleDal.Delete(role); } return(GetCurrentDbSession.SaveChange()); }
public bool DeleteEntities(List <int> delIds) { var menuList = GetCurrentDbSession.MenuInfoDal.LoadEntities(m => delIds.Contains(m.ID)); foreach (var menu in menuList) { GetCurrentDbSession.MenuInfoDal.Delete(menu); } return(GetCurrentDbSession.SaveChange()); }
public bool SaveChanges() { return(GetCurrentDbSession.SaveChange()); }