using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace CC.Yi.IBLL { public interface IBaseBll where T : class, new() { IQueryable GetEntities(Expression> whereLambda); int GetCount(Expression> whereLambda);//统计数量 #region //分组 #endregion IQueryable> GetGroup(Expression> whereLambda, Expression> groupByLambda); IQueryable GetPageEntities(int pageSize, int pageIndex, out int total, Expression> whereLambda, Expression> orderByLambda, bool isAsc); T Add(T entity); bool Update(T entity); bool Delete(T entity); bool Delete(int id); int DeleteList(List ids); } }