Class IQueryableExtensions
- Namespace
- BootstrapBlazor.Components
- Assembly
- BootstrapBlazor.dll
IQueryable 扩展方法
public static class IQueryableExtensions
- Inheritance
-
IQueryableExtensions
- Inherited Members
Methods
Count<T>(IQueryable<T>, out int)
BootstrapBlazor 扩展 Count 方法
public static IQueryable<T> Count<T>(this IQueryable<T> queryable, out int totalCount)
Parameters
queryable
IQueryable<T>数据源
totalCount
int结果数量
Returns
- IQueryable<T>
Type Parameters
T
泛型
Page<T>(IQueryable<T>, int, int)
BootstrapBlazor 扩展 Page 方法
public static IQueryable<T> Page<T>(this IQueryable<T> queryable, int skipCount, int maxResultCount)
Parameters
queryable
IQueryable<T>数据源
skipCount
intSkip 数量
maxResultCount
intTake 数量
Returns
- IQueryable<T>
Type Parameters
T
泛型
Sort<T>(IQueryable<T>, string, SortOrder, bool)
BootstrapBlazor 扩展 Sort 方法
public static IQueryable<T> Sort<T>(this IQueryable<T> queryable, string sortName, SortOrder sortOrder, bool condition)
Parameters
queryable
IQueryable<T>数据源
sortName
string排序名称
sortOrder
SortOrder排序策略
condition
bool是否排序
Returns
- IQueryable<T>
Type Parameters
T
泛型
Where<T>(IQueryable<T>, Expression<Func<T, bool>>, bool)
BootstrapBlazor 扩展 Where 方法
public static IQueryable<T> Where<T>(this IQueryable<T> queryable, Expression<Func<T, bool>> predicate, bool condition)
Parameters
queryable
IQueryable<T>数据源
predicate
Expression<Func<T, bool>>过滤条件
condition
bool是否查询条件
Returns
- IQueryable<T>
Type Parameters
T
泛型