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));
 }
 public static IQueryable <TEntity> WhereNameStartsWith <TEntity>(this IQueryable <TEntity> set, string search = null)
     where TEntity : class
 {
     return(IDNameObjectManager <TEntity> .ApplyWhere(set, (search == null)?null : IDNameObjectManager <TEntity> .GetNameStartsWithPredicate(search)));
 }
 public static IQueryable <TEntity> WhereIDsNotIn <TEntity>(this IQueryable <TEntity> set, IList ids)
     where TEntity : class
 {
     return(IDNameObjectManager <TEntity> .ApplyWhere(set, IDNameObjectManager <TEntity> .GetIDsNotInListPredicate(ids)));
 }