RedBase Documentation

Welcome to the RedBase documentation portal. Browse the API reference, explore code examples, and learn how to build with REDB.

API Reference

Browse the REDB API documentation. Select a namespace or type from the tree on the left, or click on items below.

Search results for: Key Clear search
C BaseFilterExpressionParser redb.Core.Query.Parsing
M VisitDictionaryContainsKey(MethodCallExpression) Dictionary.ContainsKey visitor.
C CreateUserRequest redb.Core.Models.Users
P Key Additional user key (optional)
C E060_DictContainsKey redb.Examples.Examples
C E063_DictTupleKey redb.Examples.Examples
C E130_GroupByMultiKey redb.Examples.Examples
C ExpressionSqlCache redb.Core.Query.Caching
M BuildCacheKey<TProps>(Expression<Func<TProps, bool>>, long) Generates stable cache key from Expression (without constant values).
C FieldInfo redb.Core.Query.Models
P DictKey For Dictionary fields: the key (e.g., "home" for PhoneBook["home"])
C FieldPathInfo redb.Core.Query.Projection
P DictKey Dictionary key (for AddressBook["home"])
C GroupedWindowSpec<TKey, TProps> redb.Core.Query.Grouping
M PartitionBy<TField>(Expression<Func<TKey, TField>>) Partition window by group key field (for ranking within partitions).
I IGroupedWindowedQueryable<TKey, TProps> redb.Core.Query.Grouping
M SelectAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>) Execute query and materialize results with window functions applied to groups.
I IGroupedWindowSpec<TKey, TProps> redb.Core.Query.Grouping
M PartitionBy<TField>(Expression<Func<TKey, TField>>) Partition window by group key field (for ranking within partitions).
I IKeyGenerator redb.Core.Data
M ThenBy<TKey>(Expression<Func<TProps, TKey>>) Additional ascending sort by Props field.
M ThenByDescending<TKey>(Expression<Func<TProps, TKey>>) Additional descending sort by Props field.
M ThenByDescendingRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Additional descending sort by IRedbObject base fields.
M ThenByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Additional ascending sort by IRedbObject base fields.
I IOrderingExpressionParser redb.Core.Query.QueryExpressions
I IRedbContext redb.Core.Data
P Keys Key generator with caching.
I IRedbGroupedQueryable<TKey, TProps> redb.Core.Query.Grouping
M SelectAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>) Executes projection with aggregations for each group.
M ToSqlStringAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>) Returns SQL string that will be executed for this GroupBy query.
M WithWindow(Action<IGroupedWindowSpec<TKey, TProps>>) Apply window functions to grouped results.
I IRedbGrouping<TKey, TProps> redb.Core.Query.Grouping
P Key Group key (value by which grouped).
I IRedbObject redb.Core.Models.Contracts
P Key Object key field
I IRedbOptionsBuilderInfrastructure redb.Core.Extensions
P LicenseKey License key for Pro features (JWT token).
I IRedbQueryable<TProps> redb.Core.Query
M DistinctBy<TKey>(Expression<Func<TProps, TKey>>) DISTINCT ON (field) - one object per unique Props field value.
M DistinctByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) DISTINCT ON (base_field) - one object per unique IRedbObject base field value.
M GroupBy<TKey>(Expression<Func<TProps, TKey>>) Group by field with subsequent aggregation.
M GroupByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Group by IRedbObject base fields (id, scheme_id, parent_id, etc.).
M OrderBy<TKey>(Expression<Func<TProps, TKey>>) Sort ascending by Props field.
M OrderByDescendingRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Sort descending by IRedbObject base fields.
M OrderByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Sort ascending by IRedbObject base fields (id, name, date_create, etc.).
I IRedbStructure redb.Core.Models.Contracts
P KeyType Key type ID for Dictionary fields. NULL for non-dictionary fields
I IRedbUser redb.Core.Models.Contracts
P Key Additional user key (optional)
I ISqlDialect redb.Core.Query
M Structures_UpdateKeyType() UPDATE structure key type. Params: $1=keyType, $2=structureId
I IWindowSpec<TProps> redb.Core.Query.Window
M OrderBy<TKey>(Expression<Func<TProps, TKey>>) Sort within window by Props field (ascending).
M OrderByDesc<TKey>(Expression<Func<TProps, TKey>>) Sort within window by Props field (descending).
M OrderByDescRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Sort within window by IRedbObject base field (descending).
M OrderByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Sort within window by IRedbObject base field (ascending).
M PartitionByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Partition by IRedbObject base field (SchemeId, OwnerId, etc.).
C LicenseInfo redb.Core.Pro.Licensing
P KeyId RSA key identifier for key rotation (e.g., "app-2024-01")
C MsSqlDialect redb.MSSql.Sql
M Structures_UpdateKeyType() UPDATE structure key type. Params: $1=keyType, $2=structureId
C NpgsqlKeyGenerator redb.Postgres.Data
M GenerateKeysAsync(int) Generate batch of keys from PostgreSQL sequence.
T NpgsqlKeyGenerator(NpgsqlDataSource) Create PostgreSQL key generator.
T NpgsqlKeyGenerator(string) Create PostgreSQL key generator from connection string.
C NpgsqlRedbContext redb.Postgres.Data
P Keys Key generator with caching.
C ObjectRecord redb.Export.Models
P Key Optional numeric key.
C PostgreSqlDialect redb.Postgres.Sql
M Structures_UpdateKeyType() UPDATE structure key type. Params: $1=keyType, $2=structureId
C RedbContextBase redb.Core.Data
P Keys Key generator.
C RedbGroupedQueryable<TKey, TProps> redb.Core.Query.Grouping
M SelectAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>) Executes projection with aggregations for each group.
M ToSqlStringAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>) Returns SQL string that will be executed for this GroupBy query.
M WithWindow(Action<IGroupedWindowSpec<TKey, TProps>>) Apply window functions to grouped results.
C RedbKeyGeneratorBase redb.Core.Data
M GenerateKeysAsync(int) Generate batch of keys from database sequence.
C RedbKeySerializer redb.Core.Utils
M CanBeKey(Type) Check if C# type is valid as Dictionary key
M Deserialize<TKey>(string) Deserialize _array_index text value to key
M GetKeyTypeId(Type) Get RedbTypeIds constant for key type
M IsComplexKey(Type) Check if key type is a complex type requiring JSON serialization
M Serialize<TKey>(TKey) Serialize key to _array_index text value
C RedbObject redb.Core.Models.Entities
P key
P Key Object key field
C RedbObjectRow redb.Core.Models.Entities
P Key External key for integration.
C RedbQueryable<TProps> redb.Core.Query
M DistinctBy<TKey>(Expression<Func<TProps, TKey>>) DISTINCT ON (field) - one object per unique Props field value.
M DistinctByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) DISTINCT ON (base_field) - one object per unique IRedbObject base field value.
M GroupBy<TKey>(Expression<Func<TProps, TKey>>) Grouping with aggregations.
M GroupByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Grouping by base IRedbObject fields (id, scheme_id, parent_id, etc.)
M OrderBy<TKey>(Expression<Func<TProps, TKey>>) Sort ascending by Props field.
M OrderByDescendingRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Sort descending by IRedbObject base fields.
M OrderByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Sort ascending by IRedbObject base fields (id, name, date_create, etc.).
M ThenBy<TKey>(Expression<Func<TProps, TKey>>) Additional ascending sort by Props field.
M ThenByDescending<TKey>(Expression<Func<TProps, TKey>>) Additional descending sort by Props field.
M ThenByDescendingRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Additional descending sort by IRedbObject base fields.
M ThenByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Additional ascending sort by IRedbObject base fields.
C RedbStructure redb.Core.Models.Entities
P KeyType Key type ID for Dictionary fields. NULL for non-dictionary fields.
C RedbTypeMapping redb.Core.Utils
M CanBeKey(long) Check if type can be used as Dictionary key
C RedbUser redb.Core.Models.Entities
P Key Additional user key (optional).
C SchemeMetadataCacheRow redb.Core.Pro.Models
C SqlKeyGenerator redb.MSSql.Data
M GenerateKeysAsync(int) Generate batch of keys from MSSQL sequence.
T SqlKeyGenerator(string) Create MSSQL key generator from connection string.
C SqlRedbContext redb.MSSql.Data
P Keys Key generator with caching.
C StructureRecord redb.Export.Models
P KeyType Key type for dictionary-typed fields.
C TreeGroupedQueryable<TKey, TProps> redb.Core.Query.Grouping
M SelectAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>) Executes projection with aggregations for each group.
M ToSqlStringAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>) Returns SQL string that will be executed for this GroupBy query.
M WithWindow(Action<IGroupedWindowSpec<TKey, TProps>>) Apply window functions to grouped results (tree-aware).
C TreeQueryableBase<TProps> redb.Core.Query.Base
M DistinctBy<TKey>(Expression<Func<TProps, TKey>>) DISTINCT ON (field) - one object per unique Props field value.
M DistinctByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) DISTINCT ON (base_field) - one object per unique IRedbObject base field value.
M GroupBy<TKey>(Expression<Func<TProps, TKey>>) Override GroupBy to respect tree context (rootObjectId, maxDepth, ParentIds).
M GroupByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Override GroupByRedb to respect tree context.
M OrderBy<TKey>(Expression<Func<TProps, TKey>>) ✅ FIX ISSUE #4: Override OrderBy to preserve Tree context
M OrderByDescending<TKey>(Expression<Func<TProps, TKey>>) ✅ FIX ISSUE #4: Override OrderByDescending for Tree context
M OrderByDescendingRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Sort descending by IRedbObject base fields.
M OrderByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Sort ascending by IRedbObject base fields (id, name, date_create, etc.).
M ThenBy<TKey>(Expression<Func<TProps, TKey>>) ✅ FIX ISSUE #4: Override ThenBy for Tree context
M ThenByDescending<TKey>(Expression<Func<TProps, TKey>>) ✅ FIX ISSUE #4: Override ThenByDescending for Tree context
M ThenByDescendingRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Additional descending sort by IRedbObject base fields.
M ThenByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Additional ascending sort by IRedbObject base fields.
C TrustedIssuers redb.Core.Pro.Licensing
M GetPublicKey(string, string) Gets the public key for a specific issuer and key ID.
C UpdateUserRequest redb.Core.Models.Users
P Key New additional key (if null - not changed)
C UserRecord redb.Export.Models
P Key Optional numeric key.
C UserSearchCriteria redb.Core.Models.Users
P KeyValue Filter by user key (exact match)
E UserSortField redb.Core.Models.Users
T Key
C WindowSpec<TProps> redb.Core.Query.Window
M OrderBy<TKey>(Expression<Func<TProps, TKey>>) Sort within window by Props field (ascending).
M OrderByDesc<TKey>(Expression<Func<TProps, TKey>>) Sort within window by Props field (descending).
M OrderByDescRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Sort within window by IRedbObject base field (descending).
M OrderByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Sort within window by IRedbObject base field (ascending).
M PartitionByRedb<TKey>(Expression<Func<IRedbObject, TKey>>) Partition by IRedbObject base field (SchemeId, OwnerId, etc.).