/// <summary> /// 获取指定类型的一个实体 /// </summary> /// <param name="where">条件</param> /// <param name="order">排序</param> /// <param name="isAsc">是否升序,默认升序</param> /// <param name="selector">要返回对象的表达式</param> /// <returns></returns> public S GetSingleEntity <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.GetSingleEntity(where, order, isAsc, selector)); }