Class AbpQueryableExtensions
Inheritance
object
AbpQueryableExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.Core.dll
Syntax
public static class AbpQueryableExtensions
Methods
OrderByIf<T, TQueryable>(TQueryable, bool, string)
Declaration
public static TQueryable OrderByIf<T, TQueryable>(this TQueryable query, bool condition, string sorting) where TQueryable : IQueryable<T>
Parameters
Type |
Name |
Description |
TQueryable |
query |
|
bool |
condition |
|
string |
sorting |
|
Returns
Type |
Description |
TQueryable |
|
Type Parameters
Name |
Description |
T |
|
TQueryable |
|
PageBy<T>(IQueryable<T>, int, int)
Declaration
public static IQueryable<T> PageBy<T>(this IQueryable<T> query, int skipCount, int maxResultCount)
Parameters
Type |
Name |
Description |
System.Linq.IQueryable<T><T> |
query |
|
int |
skipCount |
|
int |
maxResultCount |
|
Returns
Type |
Description |
System.Linq.IQueryable<T><T> |
|
Type Parameters
PageBy<T, TQueryable>(TQueryable, int, int)
Declaration
public static TQueryable PageBy<T, TQueryable>(this TQueryable query, int skipCount, int maxResultCount) where TQueryable : IQueryable<T>
Parameters
Type |
Name |
Description |
TQueryable |
query |
|
int |
skipCount |
|
int |
maxResultCount |
|
Returns
Type |
Description |
TQueryable |
|
Type Parameters
Name |
Description |
T |
|
TQueryable |
|
WhereIf<T>(IQueryable<T>, bool, Expression<Func<T, bool>>)
Declaration
public static IQueryable<T> WhereIf<T>(this IQueryable<T> query, bool condition, Expression<Func<T, bool>> predicate)
Parameters
Type |
Name |
Description |
System.Linq.IQueryable<T><T> |
query |
|
bool |
condition |
|
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
predicate |
|
Returns
Type |
Description |
System.Linq.IQueryable<T><T> |
|
Type Parameters
WhereIf<T>(IQueryable<T>, bool, Expression<Func<T, int, bool>>)
Declaration
public static IQueryable<T> WhereIf<T>(this IQueryable<T> query, bool condition, Expression<Func<T, int, bool>> predicate)
Parameters
Type |
Name |
Description |
System.Linq.IQueryable<T><T> |
query |
|
bool |
condition |
|
System.Linq.Expressions.Expression<TDelegate><System.Func<T1, T2, TResult><T, int, bool>> |
predicate |
|
Returns
Type |
Description |
System.Linq.IQueryable<T><T> |
|
Type Parameters
WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
Declaration
public static TQueryable WhereIf<T, TQueryable>(this TQueryable query, bool condition, Expression<Func<T, bool>> predicate) where TQueryable : IQueryable<T>
Parameters
Type |
Name |
Description |
TQueryable |
query |
|
bool |
condition |
|
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, bool>> |
predicate |
|
Returns
Type |
Description |
TQueryable |
|
Type Parameters
Name |
Description |
T |
|
TQueryable |
|
WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
Declaration
public static TQueryable WhereIf<T, TQueryable>(this TQueryable query, bool condition, Expression<Func<T, int, bool>> predicate) where TQueryable : IQueryable<T>
Parameters
Type |
Name |
Description |
TQueryable |
query |
|
bool |
condition |
|
System.Linq.Expressions.Expression<TDelegate><System.Func<T1, T2, TResult><T, int, bool>> |
predicate |
|
Returns
Type |
Description |
TQueryable |
|
Type Parameters
Name |
Description |
T |
|
TQueryable |
|