Документация RedBase

Добро пожаловать в документацию RedBase. Обзор API, примеры кода и руководства по работе с REDB.

API Reference

Обзор документации REDB API. Выберите пространство имён или тип в дереве слева, или кликните по элементам ниже.

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