Beispiel #1
0
 /// <summary>
 /// 返回指定类型的集合
 /// </summary>
 /// <param name="where">条件</param>
 /// <param name="order">排序</param>
 /// <param name="isAsc">是否升序</param>
 /// <param name="selector">返回指定对象</param>
 /// <returns></returns>
 public List <S> GetEntities <S, K>(Expression <Func <T, bool> > where = null, Expression <Func <T, K> > order = null,
                                    bool isAsc = true, Expression <Func <T, S> > selector = null)
 {
     return(_baseDal.GetEntities(where, order, isAsc, selector));
 }
 public IQueryable <T> GetEntities(Expression <Func <T, bool> > whereLambda)
 {
     return(CurrentDal.GetEntities(whereLambda));
 }