public static IQueryable <TEntity> QuickQuery <TEntity>(this IQueryable <TEntity> set, IList ids, Expression <Func <TEntity, object> > customOrderBySelector = null)
     where TEntity : class
 {
     return((customOrderBySelector == null)
         ? set.DefaultWhereOrder(ids)
         : IDNameObjectManager <TEntity> .ApplyOrderBy(set.DefaultWhere(ids), customOrderBySelector));
 }
 public static IQueryable <TEntity> QuickQuery <TEntity>(this IQueryable <TEntity> set, string search, int pageNumber, int pageSize, Expression <Func <TEntity, dynamic> > customOrderBySelector = null)
     where TEntity : class
 {
     return((customOrderBySelector == null)
         ? set.DefaultWhereOrder(search).Page(pageNumber, pageSize)
         : IDNameObjectManager <TEntity> .ApplyOrderBy(set.DefaultWhere(search), customOrderBySelector).Page(pageNumber, pageSize));
 }