/// <summary> /// 分页查询,自动构建where查询条件 /// </summary> /// <param name="baseOption"></param> /// <param name="total"></param> /// <returns></returns> public Task <List <REntity> > GetPageListViewBasicAsync <REntity>(Model.BaseRequestPageViewModel <REntity> baseOption, out long total) where REntity : class, new() { baseOption.PageInfo.Where = baseOption.BuildPageSearchWhere(); return(GetPageListViewAsync <REntity>(baseOption.PageInfo, out total)); }
/// <summary> /// 分页查询,使用sql,自动构建where查询条件 /// </summary> /// <param name="sql">完整sql查询</param> /// <param name="options"></param> /// <param name="total"></param> /// <returns></returns> public List <TEntity> GetPageBasicList(string sql, Model.BaseRequestPageViewModel <TEntity> options, out long total) { options.PageInfo.Where = options.BuildPageSearchWhere(); return(GetPageList(sql, options.PageInfo, out total)); }
/// <summary> /// 分页查询,使用sql,返回DTO对象,自动构建where查询条件 /// </summary> /// <param name="sql">完整sql查询</param> /// <param name="options"></param> /// <param name="total"></param> /// <returns></returns> public Task <List <REntity> > GetPageListBasicAsync <REntity>(string sql, Model.BaseRequestPageViewModel <TEntity> options, out long total) { options.PageInfo.Where = options.BuildPageSearchWhere(); return(GetPageListAsync <REntity>(options.PageInfo, out total)); }
/// <summary> /// 分页查询,自动构建where查询条件 /// </summary> /// <param name="baseOption"></param> /// <param name="total"></param> /// <returns></returns> public Task <List <TEntity> > GetPageListBasicAsync(Model.BaseRequestPageViewModel <TEntity> baseOption, out long total) { baseOption.PageInfo.Where = baseOption.BuildPageSearchWhere(); return(GetPageListAsync(baseOption.PageInfo, out total)); }