Table of Contents

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 int

Skip 数量

maxResultCount int

Take 数量

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

泛型