Class AbpQueryableExtensions
Inheritance
AbpQueryableExtensions
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
Returns
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
Returns
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
Returns
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
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
Returns
Type |
Description |
TQueryable |
|
Type Parameters
Name |
Description |
T |
|
TQueryable |
|