API Reference
Обзор документации REDB API. Выберите пространство имён или тип в дереве слева, или кликните по элементам ниже.
Результаты поиска: Count
Очистить
Agg
redb.Core.Query.Aggregation
Count()
Count of records (COUNT(*))
Count<T>(IEnumerable<T>)
Count of elements in a collection
Count<TKey, TProps>(IRedbGrouping<TKey, TProps>, Expression<Func<TProps, bool>>)
Count of the members of a group that satisfy a condition: Agg.Count(g, c => c.IsVerified).
Count<TKey, TProps>(IRedbGrouping<TKey, TProps>)
Count in a group: Agg.Count(g)
AggregateFunction
redb.Core.Query.Aggregation
Count
Record count
AmbientConnectionRegistry
redb.Core.Data
Count
Number of live entries (diagnostics and tests).
ArrayLeafOperator
redb.Core.Query.Filtering
CountEqual
array.Count == N
CountGreater
array.Count > N
CountGreaterOrEqual
array.Count >= N
CountLess
array.Count < N
CountLessOrEqual
array.Count <= N
CacheStatistics
redb.Core.Models.Permissions
ClrSchemeTypeIndex
redb.Core.Caching
Count
Diagnostics: number of live registered name keys (dead weak refs excluded).
ComparisonOperator
redb.Core.Query.QueryExpressions
CompleteSchemeMetadata
redb.Core.Caching
UsageCount
Usage count.
DeletionMark
redb.Core.Services
MarkedCount
Number of objects marked for deletion (including descendants)
Department
redb.Examples.Models
E070_CountAsync
redb.Examples.Examples
E070_CountAsync_ef
redb.Examples.ExamplesEf
E091_TreeCount
redb.Examples.Examples
E091_TreeCount_ef
redb.Examples.ExamplesEf
EmployeeProps_DepartmentHistory
redb.Examples.Ef.Entities
ExampleResult
redb.Examples.Output
Count
Number of objects processed/found.
ExampleResultProps_Results
redb.Examples.Ef.Entities
FieldStatistics<T>
redb.Core.Query.Aggregation
Count
Record count
IPermissionProvider
redb.Core.Providers
GetPermissionCountAsync()
Get total permission count.
GetPermissionCountAsync(CancellationToken)
Get total permission count.
GetRolePermissionCountAsync(IRedbRole, CancellationToken)
Get role permission count.
GetRolePermissionCountAsync(IRedbRole)
Get role permission count.
GetUserPermissionCountAsync(IRedbUser, CancellationToken)
Get user permission count.
GetUserPermissionCountAsync(IRedbUser)
Get user permission count.
IRedbGroupedQueryable<TKey, TProps>
redb.Core.Query.Grouping
CountAsync()
Returns group count.
CountAsync(CancellationToken)
Returns group count.
IRedbProjectedQueryable<TResult>
redb.Core.Query
CountAsync()
Count results.
CountAsync(CancellationToken)
Count results.
IRedbQueryable<TProps>
redb.Core.Query
CountAsync()
Count records without loading data.
CountAsync(CancellationToken)
Count records without loading data.
IRoleProvider
redb.Core.Providers
GetRoleCountAsync()
Get role count.
GetRoleCountAsync(CancellationToken)
Get role count.
GetRoleUserCountAsync(IRedbRole, CancellationToken)
Get user count in role.
GetRoleUserCountAsync(IRedbRole)
Get user count in role.
ISqlDialect
redb.Core.Query
Permissions_Count()
SELECT COUNT of all permissions
Permissions_CountByRole()
SELECT COUNT of permissions by role. Params: $1=roleId
Permissions_CountByUser()
SELECT COUNT of permissions by user. Params: $1=userId
Permissions_CountFrom()
SELECT COUNT(*) FROM _permissions (no WHERE). Used for dynamic count queries.
Query_CountTemplate()
SQL template for COUNT query. Params: functionName
Query_TreeCountNormalSql(string)
SQL for tree count query (normal search).
Query_TreeCountWithParentIdsSql(string)
SQL for tree COUNT with parent_ids array.
Query_WrapPvtWithCount(string)
Wraps the inner _id-list SQL with COUNT(*).
Roles_Count()
SELECT COUNT of all roles
Schemes_CountMetadataCache()
SELECT the number of metadata cache rows of a scheme as BIGINT. Params: $1 = scheme id.
Users_Count()
SELECT COUNT of all users
Users_CountEnabled()
SELECT COUNT of enabled users
Users_CountFrom()
SELECT COUNT(*) FROM _users (no WHERE). Used for dynamic count queries.
UsersRoles_CountByRole()
SELECT COUNT of users for role. Params: $1=roleId
IUserProvider
redb.Core.Providers
CountUsersAsync(UserSearchCriteria?, CancellationToken)
Count users matching criteria without loading data.
GetActiveUserCountAsync(DateTimeOffset, DateTimeOffset, CancellationToken)
Get active user count for period.
GetActiveUserCountAsync(DateTimeOffset, DateTimeOffset)
Get active user count for period.
GetUserCountAsync(bool, CancellationToken)
Get user count.
GetUserCountAsync(bool)
Get user count.
LicenseInfo
redb.Core.Pro.Licensing
Country
Optional country code (e.g., "RU", "US")
MsSqlDialect
redb.MSSql.Sql
Permissions_Count()
SELECT COUNT of all permissions
Permissions_CountByRole()
SELECT COUNT of permissions by role. Params: $1=roleId
Permissions_CountByUser()
SELECT COUNT of permissions by user. Params: $1=userId
Permissions_CountFrom()
SELECT COUNT(*) FROM _permissions (no WHERE). Used for dynamic count queries.
Query_CountTemplate()
MSSQL uses EXEC and OPENJSON for JSON parameters.
Query_TreeCountNormalSql(string)
For Tree procedures, we use temp table to capture EXEC result and extract total_count.
Query_TreeCountWithParentIdsSql(string)
MSSQL: capture EXEC result and extract total_count.
Query_WrapPvtWithCount(string)
Wraps the inner _id-list SQL with COUNT(*).
Roles_Count()
SELECT COUNT of all roles
Schemes_CountMetadataCache()
SELECT the number of metadata cache rows of a scheme as BIGINT. Params: $1 = scheme id.
Users_Count()
SELECT COUNT of all users
Users_CountEnabled()
SELECT COUNT of enabled users
Users_CountFrom()
SELECT COUNT(*) FROM _users (no WHERE). Used for dynamic count queries.
UsersRoles_CountByRole()
SELECT COUNT of users for role. Params: $1=roleId
MssqlTreeQueryProvider
redb.MSSql.Query
ExecuteTreeCountAsync<TProps>(TreeQueryContext<TProps>, CancellationToken)
Execute COUNT for tree query through search_tree_objects_with_facets
PermissionProviderBase
redb.Core.Providers.Base
GetPermissionCountAsync()
Get total permission count.
GetPermissionCountAsync(CancellationToken)
Get total permission count.
GetRolePermissionCountAsync(IRedbRole, CancellationToken)
Get role permission count.
GetRolePermissionCountAsync(IRedbRole)
Get role permission count.
GetUserPermissionCountAsync(IRedbUser, CancellationToken)
Get user permission count.
GetUserPermissionCountAsync(IRedbUser)
Get user permission count.
GetUserPermissionCountAsync(long, CancellationToken)
Get permission count for user.
GetUserPermissionCountAsync(long)
Get permission count for user.
PlatformResult
redb.Examples.Models
Count
Number of objects processed/found.
PostgreSqlDialect
redb.Postgres.Sql
Permissions_Count()
SELECT COUNT of all permissions
Permissions_CountByRole()
SELECT COUNT of permissions by role. Params: $1=roleId
Permissions_CountByUser()
SELECT COUNT of permissions by user. Params: $1=userId
Permissions_CountFrom()
SELECT COUNT(*) FROM _permissions (no WHERE). Used for dynamic count queries.
Query_CountTemplate()
SQL template for COUNT query. Params: functionName
Query_TreeCountNormalSql(string)
SQL for tree count query (normal search).
Query_TreeCountWithParentIdsSql(string)
PostgreSQL: extract total_count from tree function result.
Query_WrapPvtWithCount(string)
Wraps the inner _id-list SQL with COUNT(*).
Roles_Count()
SELECT COUNT of all roles
Schemes_CountMetadataCache()
SELECT the number of metadata cache rows of a scheme as BIGINT. Params: $1 = scheme id.
Users_Count()
SELECT COUNT of all users
Users_CountEnabled()
SELECT COUNT of enabled users
Users_CountFrom()
SELECT COUNT(*) FROM _users (no WHERE). Used for dynamic count queries.
UsersRoles_CountByRole()
SELECT COUNT of users for role. Params: $1=roleId
PostgresTreeQueryProvider
redb.Postgres.Query
ExecuteTreeCountAsync<TProps>(TreeQueryContext<TProps>, CancellationToken)
Execute COUNT for tree query through search_tree_objects_with_facets
PropertyFunction
redb.Core.Query.QueryExpressions
Count
Collection element count (array.Count)
PropsCacheStatistics
redb.Core.Caching
ProQueryProvider
redb.MSSql.Pro.Query
ExecuteCountAsync<TProps>(QueryContext<TProps>, CancellationToken)
Pro Override: COUNT via CTE + JOIN (uses BuildQuerySqlAsync).
ExecuteCountAsync<TProps>(QueryContext<TProps>)
Pro Override: COUNT via CTE + JOIN (uses BuildQuerySqlAsync).
ProQueryProvider
redb.Postgres.Pro.Query
ExecuteCountAsync<TProps>(QueryContext<TProps>, CancellationToken)
Pro Override: COUNT via CTE + JOIN (uses BuildQuerySqlAsync).
ExecuteCountAsync<TProps>(QueryContext<TProps>)
Pro Override: COUNT via CTE + JOIN (uses BuildQuerySqlAsync).
ProTreeQueryProvider
redb.MSSql.Pro.Query
ExecuteTreeCountAsync<TProps>(TreeQueryContext<TProps>, CancellationToken)
Pro Override: Tree Count via CTE + pvt.
ExecuteTreeCountAsync<TProps>(TreeQueryContext<TProps>)
⚡ Pro Override: Tree Count via CTE + pvt.
ProTreeQueryProvider
redb.Postgres.Pro.Query
ExecuteTreeCountAsync<TProps>(TreeQueryContext<TProps>, CancellationToken)
Pro Override: Tree Count via CTE + PVT.
ExecuteTreeCountAsync<TProps>(TreeQueryContext<TProps>)
⚡ Pro Override: Tree Count via CTE + PVT.
QueryProviderBase
redb.Core.Query.Base
ExecuteCountAsync<TProps>(QueryContext<TProps>, CancellationToken)
Executes COUNT query. Override in Pro for PVT-based count with computed expressions.
ExecuteCountAsync<TProps>(QueryContext<TProps>)
Executes COUNT query. Override in Pro for PVT-based count with computed expressions.
ExecuteCountAsyncPvt<TProps>(QueryContext<TProps>, CancellationToken)
v2-pvt Count path: COUNT(*) wrapper over the inner _id-list SQL.
RedbArrayGroupedQueryable<TKey, TItem, TProps>
redb.Core.Query.Grouping
CountAsync()
Returns group count.
CountAsync(CancellationToken)
Returns group count.
RedbDeletedContext
redb.Core.Interception
DeletedCount
Rows the delete statement reported removed (cascades not included).
RedbGroupedQueryable<TKey, TProps>
redb.Core.Query.Grouping
CountAsync()
Returns group count.
CountAsync(CancellationToken)
Returns group count.
RedbObjectExtensions
redb.Core.Extensions
GetChildrenCountAsync<T>(IRedbObject, ITreeProvider)
Gets count of object children
GetDescendantsCountAsync<T>(IRedbObject, ITreeProvider, int?)
Gets count of all object descendants
RedbObjectReferencedException
redb.Core.Exceptions
RemainingCount
Objects still left in the container.
RedbProjectedQueryable<TProps, TResult>
redb.Core.Query
CountAsync()
Count results.
CountAsync(CancellationToken)
Count results.
RedbProjectedQueryableTaskExtensions
redb.Core.Query
RedbQueryable<TProps>
redb.Core.Query
BuildCountExpression()
Builds expression for record count
CountAsync()
Count records without loading data.
CountAsync(CancellationToken)
Number of rows of the same query returns, Take and Skip included.
RedbServiceBase
redb.Core
GetPermissionCountAsync()
Get total permission count.
GetPermissionCountAsync(CancellationToken)
Get total permission count.
GetRolePermissionCountAsync(IRedbRole, CancellationToken)
Get role permission count.
GetRolePermissionCountAsync(IRedbRole)
Get role permission count.
GetUserPermissionCountAsync(IRedbUser, CancellationToken)
Get user permission count.
GetUserPermissionCountAsync(IRedbUser)
Get user permission count.
RoleProviderBase
redb.Core.Providers.Base
GetRoleCountAsync()
Get role count.
GetRoleCountAsync(CancellationToken)
Get role count.
GetRoleUserCountAsync(IRedbRole, CancellationToken)
Get user count in role.
GetRoleUserCountAsync(IRedbRole)
Get user count in role.
SchemeCacheStatistics
redb.Core.Caching
CachedSchemesCount
Cached schemes count.
TypeMappingsCount
Type mappings count.
SqlParameterCollector
redb.Core.Pro.Query
Count
Number of added parameters.
SqlParameterCollectorBase
redb.Core.Query.Parameters
Count
Number of parameters added.
StaticCacheStatistics
redb.Core.Caching
StatisticsWindow
redb.Core.Providers
CountersSince
Since when the counters have been counting: the last statistics reset (PostgreSQL) or
StructureCacheStatistics
redb.Core.Caching
TopUsedScheme
redb.Core.Caching
UsageCount
Usage count.
TreeCollection
redb.Core.Models.Collections
Count
Gets count of nodes in collection
TreeCollection<TProps>
redb.Core.Models.Collections
Count
Gets count of nodes in collection
TreeGroupedQueryable<TKey, TProps>
redb.Core.Query.Grouping
CountAsync()
Returns group count.
CountAsync(CancellationToken)
Returns group count.
TreeProjectedQueryable<TProps, TResult>
redb.Core.Query
CountAsync()
Count results.
CountAsync(CancellationToken)
Count results.
TreeQueryableBase<TProps>
redb.Core.Query.Base
CountAsync()
Count records without loading data.
CountAsync(CancellationToken)
Same contract as the flat query: the rows ToListAsync returns, Take and Skip included.
TreeQueryProviderBase
redb.Core.Query.Base
ExecuteTreeCountAsync<TProps>(TreeQueryContext<TProps>, CancellationToken)
Execute COUNT for tree query through search_tree_objects_with_facets
ExecuteTreeCountAsync<TProps>(TreeQueryContext<TProps>)
Execute COUNT for tree query through search_tree_objects_with_facets
TreeQuerySqlResult
redb.MSSql.Pro.Query
IsStreamsCount
The statement is already a complete COUNT over the streams CTE.
TypeCacheStatistics
redb.Core.Caching
TypeMigrationResult
redb.Core.Providers
TypeUsageInfo
redb.Core.Caching
UserCacheStats
redb.Core.Caching
ObjectCount
Number of user objects in cache.
UserProviderBase
redb.Core.Providers.Base
BuildUserCountSql(UserSearchCriteria?, out object[])
Build SQL for counting users matching criteria.
CountUsersAsync(UserSearchCriteria?, CancellationToken)
Count users matching criteria without loading data.
GetActiveUserCountAsync(DateTimeOffset, DateTimeOffset, CancellationToken)
Get active user count for period.
GetActiveUserCountAsync(DateTimeOffset, DateTimeOffset)
Get active user count for period.
GetUserCountAsync(bool, CancellationToken)
Get user count.
GetUserCountAsync(bool)
Get user count.