public int DeleteList(List <int> ids) { foreach (var id in ids) { CurretDal.Delete(id); } return(DbSession.SaveChanges()); }
public int AlterListStatus(List <int> list) { CurretDal.AlterListStatus(list); return(DbSession.SaveChanges()); }
public int DeleteListByLogical(List <int> ids) { CurretDal.DeleteListByLogical(ids); return(DbSession.SaveChanges()); }
public bool Delete(int id) { CurretDal.Delete(id); return(DbSession.SaveChanges() > 0); }
public bool Delete(T entity) { CurretDal.Delete(entity); return(DbSession.SaveChanges() > 0); }
public T Add(T entity) { CurretDal.Add(entity); DbSession.SaveChanges(); return(entity); }
public IQueryable <T> GetPageEntity <S>(int pagesize, int pageIndex, out int total, Expression <Func <T, bool> > whereLambda, Expression <Func <T, S> > orderbyLambda, bool isAsc)//分页条件查询 { return(CurretDal.GetPageEntity(pagesize, pageIndex, out total, whereLambda, orderbyLambda, isAsc)); }
public IQueryable <T> GetEntity(Expression <Func <T, bool> > whereLambda)//条件查询方法 { return(CurretDal.GetEntity(whereLambda)); }