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.

Showing: redb.Examples Show all

redb.Examples.Ef

Classes

C FlatContext

redb.Examples.Ef.Entities

Classes

C CityProps
C CityProps_Coordinates
C DepartmentProps
C EmployeeProps
C EmployeeProps_BonusByYear
C EmployeeProps_Certifications
C EmployeeProps_CertificationYears
C EmployeeProps_Contacts
C EmployeeProps_Contacts_Metadata
C EmployeeProps_Contacts_NotificationHours
C EmployeeProps_DepartmentHistory
C EmployeeProps_DepartmentHistory_BudgetByYear
C EmployeeProps_DepartmentHistory_Leaders
C EmployeeProps_DepartmentHistory_Projects
C EmployeeProps_EmergencyAddress
C EmployeeProps_EmergencyAddress_Building
C EmployeeProps_EmergencyAddress_Building_AccessCodes
C EmployeeProps_EmergencyAddress_Building_Amenities
C EmployeeProps_EmergencyAddress_Building_ElevatorFloors
C EmployeeProps_EmergencyAddress_Building_ParkingSpots
C EmployeeProps_HomeAddress
C EmployeeProps_HomeAddress_Building
C EmployeeProps_HomeAddress_Building_AccessCodes
C EmployeeProps_HomeAddress_Building_Amenities
C EmployeeProps_HomeAddress_Building_ElevatorFloors
C EmployeeProps_HomeAddress_Building_ParkingSpots
C EmployeeProps_OfficeLocations
C EmployeeProps_OfficeLocations_Building
C EmployeeProps_OfficeLocations_Building_AccessCodes
C EmployeeProps_OfficeLocations_Building_Amenities
C EmployeeProps_OfficeLocations_Building_ElevatorFloors
C EmployeeProps_OfficeLocations_Building_ParkingSpots
C EmployeeProps_PastProjects
C EmployeeProps_PerformanceReviews
C EmployeeProps_PhoneDirectory
C EmployeeProps_ProjectMetrics
C EmployeeProps_SkillLevels
C EmployeeProps_Skills
C EmployeeProps_WorkAddress
C EmployeeProps_WorkAddress_Building
C EmployeeProps_WorkAddress_Building_AccessCodes
C EmployeeProps_WorkAddress_Building_Amenities
C EmployeeProps_WorkAddress_Building_ElevatorFloors
C EmployeeProps_WorkAddress_Building_ParkingSpots
C ExampleResultProps
C ExampleResultProps_Results
C list_items
C lists
C objects
C PersonProps
C PersonProps_Roles
C ProjectMetricsProps
C ProjectMetricsProps_Tags
C ProjectMetricsProps_Technologies

redb.Examples.Examples

Classes

C E000_BulkInsert Example: Bulk insert of complex employee records.
C E001_SaveAsync Example: Create and save a new employee.
C E002_LoadAsync Example: Load employee by ID.
C E003_UniqueKeys Unique business keys (V4 [RedbUnique]): the value of a marked field is unique within
C E004_SubtreeAndElementKeys Unique keys beyond a root scalar (V4). Props are stored flat, one row per value, and the
C E010_WhereSimple Example: Simple Where filter by salary.
C E011_WhereAnd Example: Where with AND - filter by age and salary.
C E012_WhereOr Filter employees using OR condition.
C E013_WhereNot Filter employees using NOT equal condition.
C E014_WhereRange Filter employees by salary range.
C E015_WhereTripleAnd Filter employees using triple AND condition.
C E016_WhereChain Filter employees using chained Where() calls.
C E020_DateTimeGreater Filter employees by hire date.
C E021_DateTimeRange Filter employees by date range.
C E030_StringContains Filter employees using String.Contains.
C E031_StringStartsWith Filter employees using String.StartsWith.
C E032_StringContainsIgnoreCase Filter using case-insensitive String.Contains.
C E040_NestedProperty Filter employees by nested property.
C E041_DeepNested Filter employees by deeply nested property.
C E050_ArrayContains Query employees by skill using Array.Contains.
C E051_ArrayMultiple Query employees with multiple skills using Array.Contains with OR.
C E052_ArrayNotContains Query employees excluding specific skill.
C E053_ArrayWithConditions Query employees combining array Contains with other conditions (Pro).
C E060_DictContainsKey Query employees using Dictionary.ContainsKey.
C E061_DictIndexer Query employees using Dictionary indexer.
C E062_DictNestedClass Query employees using Dict indexer with nested class (Pro).
C E063_DictTupleKey Query employees using Dict with tuple key (Pro).
C E070_CountAsync Count employees using CountAsync.
C E071_AnyAsync Check if any employees exist using AnyAsync().
C E072_AnyWithPredicate Check if any employees match a condition using AnyAsync(predicate).
C E073_AllAsync Check if ALL employees match a condition using AllAsync(predicate).
C E074_WhereIn Filter employees by a list of values using WhereIn.
C E075_Select Project specific fields using Select (server-side projection).
C E076_Distinct Get unique objects by Props hash using Distinct().
C E080_OrderBy Sort employees by salary using OrderBy.
C E081_OrderByThenBy Sort employees by multiple fields using ThenBy.
C E082_SkipTake Paginate employees using Skip and Take.
C E083_OrderByDescending Sort employees in descending order using OrderByDescending.
C E087_TreeCleanup Cleanup existing tree data before E088/E089 tests.
C E088_TreeCreateBulk BULK create tree hierarchy (Pro feature) - FAST version.
C E089_TreeCreate Sequential create tree hierarchy - deliberate ANTIPATTERN demo.
C E090_TreeLoad Load full tree with LoadTreeAsync.
C E091_TreeCount Count tree nodes with TreeQuery.
C E092_TreeChildren Get direct children of a node.
C E093_TreePath Get path from node to root.
C E094_TreeDescendants Get all descendants of a node.
C E095_TreeMove Move node to new parent.
C E096_TreeQuery LINQ queries on tree structures.
C E097_TreeQueryRoots Find root nodes in tree.
C E098_TreeQueryLeaves Find leaf nodes in tree.
C E099_TreeQueryLevel Filter tree nodes by level.
C E100_TreeTraversalDFS Depth-First traversal of tree.
C E101_TreeTraversalBFS Breadth-First traversal of tree.
C E102_TreeIsDescendant Check if node is descendant of another.
C E103_TreeIsAncestor Check if node is ancestor of another.
C E104_TreeGetLevel Get tree level of a node.
C E105_TreeQueryWithRoot TreeQuery scoped to specific root.
C E106_TreeQueryChildrenOf Query direct children of a node.
C E107_TreeQueryMultiRoot TreeQuery with multiple root parents.
C E108_TreeToTreeList ToTreeListAsync with Parent chain.
C E109_TreeToRootList ToRootListAsync - get full tree structure.
C E110_TreeWhereHasAncestor WhereHasAncestor - polymorphic ancestor filter.
C E111_TreeWhereHasDescendant WhereHasDescendant - find parents by child criteria.
C E112_TreeStats Tree statistics via TreeCollection.
C E113_TreeToFlatList Load tree nodes as flat list without Parent/Children links.
C E114_ListCreate Creates a new RedbList (dictionary/lookup table).
C E115_ListAddItems Adds multiple items to a RedbList using AddItemsAsync.
C E116_ListGetByName Gets a RedbList by name and retrieves its items.
C E117_ListItemWithObject Creates a ListItem with linked RedbObject.
C E118_PropsListItemField Object with ListItem field in Props.
C E119_PropsListItemArray Object with List of ListItems field in Props.
C E120_ListItemWhereByValue Query filtering by ListItem.Value property.
C E121_ListItemWhereIn Query filtering by ListItem.Value using WhereIn.
C E122_ListItemDirectCompare Query filtering by direct ListItem comparison.
C E123_ListItemArrayAny Query filtering by ListItem array using Any().
C E124_SumAsync Calculates sum of a numeric field using SumAsync.
C E125_AverageAsync Calculates average of a numeric field using AverageAsync.
C E126_MinMaxAsync Calculates min and max of numeric fields using MinAsync/MaxAsync.
C E127_AggregateAsync Batch aggregation with multiple functions in single query.
C E128_GroupBySimple Groups objects by a field and calculates aggregates per group.
C E129_GroupByFiltered GroupBy with Where filter applied before grouping.
C E130_GroupByListItem GroupBy by a ListItem-typed property.
C E130_GroupByMultiKey GroupBy with composite key (multiple fields).
C E131_GroupByRedb GroupBy on base RedbObject fields without JOIN.
C E132_WindowRowNumber Window function ROW_NUMBER() with PARTITION BY.
C E133_WindowRunningSum Window function SUM() OVER for running totals.
C E134_WindowLagLead Window functions LAG/LEAD for previous/next values.
C E135_WindowRank Window functions RANK/DENSE_RANK for ranking with ties.
C E136_WindowNtile Window function NTILE for bucket distribution.
C E137_WindowFirstLast Window functions FIRST_VALUE/LAST_VALUE.
C E138_WindowFrame Window function with custom frame (sliding window).
C E139_DistinctRedb DISTINCT ON base fields (without Id) for finding duplicates.
C E140_DistinctByRedb DISTINCT ON specific base field.
C E141_WhereInRedb Filter by list of base field values.
C E142_GroupByArray Groups objects by the elements of an array nested two levels deep using GroupByArray.
C E143_SumRedbAsync SumRedbAsync - sum of base IRedbObject field WITHOUT JOIN to _values.
C E144_MinMaxRedbAsync MinRedbAsync/MaxRedbAsync - min/max of base IRedbObject fields WITHOUT JOIN.
C E145_AverageRedbAsync AverageRedbAsync - average of base IRedbObject field WITHOUT JOIN.
C E146_AggregateRedbAsync AggregateRedbAsync - batch aggregation of base IRedbObject fields in ONE query.
C E147_WindowPartitionByRedb PartitionByRedb in Window Functions - partition by base IRedbObject field.
C E148_WindowOrderByRedb OrderByRedb in Window Functions - order by base IRedbObject field.
C E149_SelectProjection Select projection - load only specific fields instead of full object.
C E150_ArrayAggregation Array aggregation - aggregate all elements of an array field.
C E150A_ArrayAggregationByIndex Array aggregation - aggregate one element of an array field by its index.
C E151_ArithmeticMultiply Demonstrates arithmetic multiplication in Where clause.
C E152_ArithmeticAddFields Demonstrates arithmetic operations combining multiple fields in Where clause.
C E153_StringToLower Demonstrates case-insensitive string search using ToLower() in Where clause.
C E154_StringTrim Demonstrates Trim() function in Where clause to filter out empty or whitespace-only values.
C E155_StringChain Demonstrates chaining multiple string functions in Where clause.
C E156_MathAbs Demonstrates Math.Abs() in Where clause for range filtering around a target value.
C E157_DateTimeYear Demonstrates DateTime property extraction in WhereRedb clause.
C E158_Parentheses Demonstrates parentheses for operation priority in Where clause.
C E159_NestedMath Demonstrates nested Math functions with arithmetic in Where clause.
C E160_TreeQueryExpressions Demonstrates arithmetic expressions in TreeQuery Where clause.
C E161_SqlFunctionCoalesce Demonstrates Sql.Function for calling custom SQL functions.
C E162_SqlFunctionPower Demonstrates Sql.Function for mathematical SQL functions.
C E163_SqlFunctionNested Demonstrates nested Sql.Function calls for complex SQL expressions.
C E164_BaseFieldsSingle Demonstrates using RedbObject base fields without Props (no props rows).
C E165_BaseFieldsBatch Demonstrates batch save/load of non-generic RedbObject with base fields.
C E166_GenericNullProps Demonstrates using generic RedbObject<TProps> with Props=null.
C E167_MixedBatch Demonstrates mixed batch save with both non-generic RedbObject and generic RedbObject<T> with Props=...
C E168_ArrayContains Demonstrates filtering by array element using Contains().
C E169_ArrayContainsOr Demonstrates filtering by multiple array elements using Contains with OR.
C E170_ArrayContainsAnd Demonstrates filtering by multiple array elements using Contains with AND.
C E171_ScalarPlusArray Demonstrates combining scalar field filter with array Contains filter.
C E172_StringLength Demonstrates String.Length property in Where clause.
C E173_TreeQueryGroupBy Demonstrates GroupBy aggregation on TreeQuery.
C E174_TreeQueryWindow Demonstrates Window Functions on TreeQuery.
C E175_TreeQueryGroupByWindow Demonstrates GroupBy + Window Functions on TreeQuery.
C E176_TreeDistinctBy Demonstrates DistinctBy on TreeQuery to get unique tree nodes by a Props field.
C E177_TreeDistinctByRedb Demonstrates DistinctByRedb on TreeQuery to get unique tree nodes by a base field.
C E178_TreeOrderBy Demonstrates OrderBy on TreeQuery to sort tree nodes by a Props field.
C E179_TreeOrderByDescending Demonstrates OrderByDescending on TreeQuery to sort tree nodes in reverse order.
C E180_TreeDistinctByOrderBy Demonstrates combining DistinctBy and OrderByDescending on TreeQuery.
C E181_DeleteSingle Demonstrates deleting a single object by ID.
C E182_DeleteBatch Demonstrates batch deletion of multiple objects.
C E183_FirstOrDefaultAsync Demonstrates FirstOrDefaultAsync to get a single object matching criteria.
C E184_WhereNullable Demonstrates filtering by nullable fields.
C E185_WhereBool Demonstrates filtering by conditions that can be simplified.
C E186_ObjectReference Demonstrates loading objects with RedbObject references.
C E187_UpdateExisting Demonstrates updating an existing object by loading, modifying, and saving it.
C E188_SoftDeleteReference Verifies the soft-delete read-path fix (_id_scheme = -10).
C E190_SumAsyncFiltered SumAsync with Where filter applied before aggregation.
C E191_WindowFiltered Window function with Where filter applied before windowing.
C E192_AggregateFiltered Multiple aggregations with Where filter applied before aggregation.
C E193_AverageAsyncFiltered AverageAsync with Where filter applied before aggregation.
C E194_MinMaxAsyncFiltered MinAsync/MaxAsync with Where filter applied before aggregation.
C E195_GroupByWindowFiltered GroupBy + Window with Where filter applied before grouping.
C E200_SmokeSqlDump Dumps SQL generated for a representative set of LINQ queries that mirror
C E201_NullCheckBaseIdAmbiguity Reproduces the ambiguous _id defect in the PVT CTE.
C E202_PvtPrefilter Dumps SQL for the cases the PVT prefilter is meant to handle, so the same run can be
C E203_SeedVolume Seeds a large company: Employee objects arranged as a reporting tree.
C E204_TreePrefilter Tree counterpart of E202: dumps the SQL a tree query generates with and without the PVT
C E205_WhereRedbSystemFields WhereRedb: filtering on SYSTEM fields of _objects (id, parent_id, key, value_string,
C E206_WhereRedbNarrowsFirst WhereRedb narrows first. A condition on the object's own columns (here the parent) is checked
C E997_DateTimeJulianVerify Regression probe for SQLite REAL Julian-day datetime storage.
C ExampleBase Base class for all examples.
C ExampleMetaAttribute Attribute to mark example classes with metadata.

redb.Examples.ExamplesEf

Classes

C E000_BulkInsert_ef EF Core twin of : the same 100 complex employees, mapped to the entity graph by
C E001_SaveAsync_ef EF Core twin of : one new employee, mapped by hand and saved.
C E002_LoadAsync_ef EF Core twin of : find any employee, then load it by id, both times as the
C E003_UniqueKeys_ef EF Core twin of : a business key that soft delete releases and a typed violation
C E004_SubtreeAndElementKeys_ef EF Core twin of : unique keys over the content of a nested class, an
C E010_WhereSimple_ef EF Core twin of : up to 100 employees with Salary above 75000, as whole objects.
C E011_WhereAnd_ef EF Core twin of : Age >= 30 AND Salary > 70000, up to 100 whole employees.
C E012_WhereOr_ef
C E013_WhereNot_ef EF Core twin of : Position other than Manager, up to 100 whole employees.
C E014_WhereRange_ef
C E015_WhereTripleAnd_ef EF Core twin of : three conditions, highest salary first, top 100 whole
C E016_WhereChain_ef EF Core twin of : three chained Where calls, up to 100 whole employees.
C E020_DateTimeGreater_ef EF Core twin of : hired in the last two years, up to 100 whole employees.
C E021_DateTimeRange_ef EF Core twin of : hired between three and one year ago, up to 100 whole employees.
C E030_StringContains_ef EF Core twin of : LastName contains Smith, up to 100 whole employees.
C E031_StringStartsWith_ef EF Core twin of : FirstName starts with John, up to 100 whole employees.
C E032_StringContainsIgnoreCase_ef EF Core twin of : LastName contains smith in any case, up to 100 whole employees.
C E040_NestedProperty_ef EF Core twin of : HomeAddress.City is London, up to 100 whole employees.
C E041_DeepNested_ef EF Core twin of : HomeAddress.Building.Floor above 10, up to 100 whole employees.
C E050_ArrayContains_ef EF Core twin of : Skills contains C#, up to 100 whole employees.
C E051_ArrayMultiple_ef EF Core twin of : Skills has C# or Python, up to 100 whole employees.
C E052_ArrayNotContains_ef EF Core twin of : Skills has C# and not intern, up to 100 whole employees.
C E053_ArrayWithConditions_ef EF Core twin of : Skills has C#, Age >= 30, Salary > 70000, up to 100 whole employees.
C E060_DictContainsKey_ef EF Core twin of : PhoneDirectory has the key desk, up to 100 whole employees.
C E061_DictIndexer_ef EF Core twin of : BonusByYear[2023] above 6000, up to 100 whole employees.
C E062_DictNestedClass_ef EF Core twin of : OfficeLocations[HQ].City is New York, up to 100 whole employees.
C E063_DictTupleKey_ef EF Core twin of : PerformanceReviews[(2024, Q1)] is Excellent, up to 100 whole employees.
C E070_CountAsync_ef EF Core twin of : total and filtered count.
C E071_AnyAsync_ef EF Core twin of : does any employee exist.
C E072_AnyWithPredicate_ef EF Core twin of : is there anyone with Salary above 100000.
C E073_AllAsync_ef EF Core twin of : three AllAsync checks.
C E074_WhereIn_ef EF Core twin of : employees of three departments, up to 100 whole objects,
C E075_Select_ef EF Core twin of : ten fields of 100 employees from every depth, a projection, no
C E076_Distinct_ef EF Core twin of . redb removes objects whose whole content is the same. In EF the content of an empl...
C E080_OrderBy_ef EF Core twin of : five lowest and five highest salaries, whole employees.
C E081_OrderByThenBy_ef EF Core twin of : Department ascending, Salary descending, first 100 whole employees.
C E082_SkipTake_ef EF Core twin of : page 2 of 10 by LastName, whole employees.
C E083_OrderByDescending_ef EF Core twin of : five top earners and five oldest, whole employees.
C E087_TreeCleanup_ef EF Core twin of : every department node loaded, then removed. EF has no trash,
C E088_TreeCreateBulk_ef EF Core twin of : the same four-level department tree, built as one entity
C E089_TreeCreate_ef EF Core twin of : the same tree saved node by node, one SaveChangesAsync
C E090_TreeLoad_ef EF Core twin of : a subtree loaded to a given depth.
C E091_TreeCount_ef EF Core twin of : the count of department nodes.
C E092_TreeChildren_ef EF Core twin of : the CORP root and its direct children (_id_parent equal to the root).
C E093_TreePath_ef EF Core twin of : the path from a node up to the root.
C E094_TreeDescendants_ef EF Core twin of . All descendants of a node, at any depth, need a
C E095_TreeMove_ef EF Core twin of : a department moved under OFF-02 and back under OFF-01 by changing
C E096_TreeQuery_ef EF Core twin of : department nodes whose name contains "IT", ordered by name.
C E097_TreeQueryRoots_ef EF Core twin of : department nodes without a parent.
C E098_TreeQueryLeaves_ef EF Core twin of : department nodes that have no children.
C E099_TreeQueryLevel_ef EF Core twin of : the nodes at a given level below a root.
C E100_TreeTraversalDFS_ef EF Core twin of : depth-first walk over a tree loaded to a given depth.
C E101_TreeTraversalBFS_ef EF Core twin of : breadth-first walk over a tree loaded to a given depth.
C E102_TreeIsDescendant_ef EF Core twin of : whether a node lies anywhere below another.
C E103_TreeIsAncestor_ef EF Core twin of : whether a node lies anywhere above another.
C E104_TreeGetLevel_ef EF Core twin of : the depth of a node from its root.
C E105_TreeQueryWithRoot_ef EF Core twin of : a subtree query limited to a given depth.
C E106_TreeQueryChildrenOf_ef EF Core twin of : the direct children of the CORP root. The root lookup is outside the measurement.
C E107_TreeQueryMultiRoot_ef EF Core twin of : subtrees of several roots limited to a given depth.
C E108_TreeToTreeList_ef EF Core twin of : found nodes with their parent chain up to the root.
C E109_TreeToRootList_ef EF Core twin of : whole trees assembled from their roots.
C E110_TreeWhereHasAncestor_ef EF Core twin of : nodes filtered by a condition on any ancestor.
C E111_TreeWhereHasDescendant_ef EF Core twin of : nodes filtered by a condition on any descendant.
C E112_TreeStats_ef EF Core twin of : statistics of a tree loaded to a given depth.
C E113_TreeToFlatList_ef EF Core twin of : a filtered subtree limited to a given depth, as a flat list.
C E114_ListCreate_ef EF Core twin of : the list "ExampleStatuses" created anew. An earlier one is
C E115_ListAddItems_ef EF Core twin of : four items with aliases added to "ExampleStatuses" in one save.
C E116_ListGetByName_ef EF Core twin of : the list found by name, then its items, two queries as in redb.
C E117_ListItemWithObject_ef EF Core twin of : a city saved with its coordinates, then a list item
C E118_PropsListItemField_ef EF Core twin of : a person whose Status points at the item "Active",
C E119_PropsListItemArray_ef EF Core twin of : a person whose Roles point at the first three items,
C E120_ListItemWhereByValue_ef EF Core twin of : persons whose status item has the value "Active", whole.
C E121_ListItemWhereIn_ef EF Core twin of : persons whose status item value is one of three, whole.
C E122_ListItemDirectCompare_ef EF Core twin of : the "Active" item looked up, then persons whose Status is that item, whole.
C E123_ListItemArrayAny_ef EF Core twin of : persons with any role item valued "Active", whole.
C E124_SumAsync_ef EF Core twin of : SUM(Salary) and SUM(HomeAddress.Building.Floor) on the
C E125_AverageAsync_ef EF Core twin of : AVG(Age) and AVG(HomeAddress.Building.Floor) on the
C E126_MinMaxAsync_ef EF Core twin of : MIN and MAX of Salary and of
C E127_AggregateAsync_ef EF Core twin of : eight aggregates in one query. EF has no batch aggregate
C E128_GroupBySimple_ef EF Core twin of : per department total salary, average age, average
C E129_GroupByFiltered_ef EF Core twin of : Salary above 50000, grouped by department, with the
C E130_GroupByMultiKey_ef EF Core twin of : grouped by department and position, with the average
C E131_GroupByRedb_ef EF Core twin of : total salary and count per owner. The owner is a field of
C E132_WindowRowNumber_ef EF Core twin of . EF Core does not translate window functions
C E133_WindowRunningSum_ef EF Core twin of . EF Core does not translate window functions (dotnet/efcore#12747), open since 2018...
C E134_WindowLagLead_ef EF Core twin of . EF Core does not translate window functions (dotnet/efcore#12747), open since 2018...
C E135_WindowRank_ef EF Core twin of . EF Core does not translate window functions (dotnet/efcore#12747), open since 2018...
C E136_WindowNtile_ef EF Core twin of . EF Core does not translate window functions (dotnet/efcore#12747), open since 2018...
C E137_WindowFirstLast_ef EF Core twin of . EF Core does not translate window functions (dotnet/efcore#12747), open since 2018...
C E138_WindowFrame_ef EF Core twin of . EF Core does not translate window functions (dotnet/efcore#12747), open since 2018...
C E139_DistinctRedb_ef EF Core twin of : up to 100 employees unique by every header field except
C E140_DistinctByRedb_ef EF Core twin of : up to 100 employees with distinct names, as whole objects.
C E141_WhereInRedb_ef EF Core twin of : five keys, then the employees with those keys as whole objects.
C E142_GroupByArray_ef EF Core twin of : the metadata entries of the contacts of employees living
C E143_SumRedbAsync_ef EF Core twin of : SUM of the employee keys and the count, two queries.
C E144_MinMaxRedbAsync_ef EF Core twin of : first and last creation date of the employees, two
C E145_AverageRedbAsync_ef EF Core twin of : AVG, MIN and MAX of the employee keys, three queries as in redb.
C E146_AggregateRedbAsync_ef EF Core twin of : five aggregates over header fields in one query,
C E147_WindowPartitionByRedb_ef EF Core twin of : ROW_NUMBER over a partition, which EF Core cannot express.
C E148_WindowOrderByRedb_ef EF Core twin of : a running COUNT over a window frame, which EF Core cannot express.
C E149_SelectProjection_ef EF Core twin of : three fields of 100 employees, then the same 100 as
C E150_ArrayAggregation_ef EF Core twin of : SUM and AVG over every element of SkillLevels and the
C E150A_ArrayAggregationByIndex_ef EF Core twin of : SUM and AVG of SkillLevels[0], one query over the array table.
C E151_ArithmeticMultiply_ef EF Core twin of : Salary * 12 above 1 000 000, up to 100 whole objects and the count.
C E152_ArithmeticAddFields_ef EF Core twin of : Age * 1000 + Salary above 120 000, up to 100 whole objects and the count.
C E153_StringToLower_ef EF Core twin of : LastName.ToLower() contains "s", up to 100 whole objects and the count.
C E154_StringTrim_ef EF Core twin of : FirstName.Trim().Length above 3, up to 100 whole objects and the count.
C E155_StringChain_ef EF Core twin of : Department.ToUpper().Length above 5, up to 100 whole objects and the count.
C E156_MathAbs_ef EF Core twin of : |Age - 35| at most 5, up to 100 whole objects and the count.
C E157_DateTimeYear_ef EF Core twin of : objects created this year and older than 30, up to 100 whole
C E158_Parentheses_ef EF Core twin of : (Salary / 12) above 7000, up to 100 whole objects and the count.
C E159_NestedMath_ef EF Core twin of : |Salary - 80000| below 10000, up to 100 whole objects and the count.
C E160_TreeQueryExpressions_ef EF Core twin of : a filter over the whole subtree of a root.
C E161_SqlFunctionCoalesce_ef EF Core twin of : COALESCE(Age, 0) above 30, up to 100 whole objects and
C E162_SqlFunctionPower_ef EF Core twin of : POWER(Age, 2) above 900, up to 100 whole objects and the
C E163_SqlFunctionNested_ef EF Core twin of : SQRT(Salary) above 250, up to 100 whole objects and the
C E164_BaseFieldsSingle_ef EF Core twin of : one header row with value fields and no Props, saved and loaded back.
C E165_BaseFieldsBatch_ef EF Core twin of : ten header rows without Props, saved and loaded as a batch.
C E166_GenericNullProps_ef EF Core twin of : a header row marked as an employee but without an
C E167_MixedBatch_ef EF Core twin of : two plain header rows and two marked as employees without Props,
C E168_ArrayContains_ef EF Core twin of : Skills contains "C#", up to 100 whole objects and the count.
C E169_ArrayContainsOr_ef EF Core twin of : Skills contains "C#" or "Python", up to 100 whole objects and the count.
C E170_ArrayContainsAnd_ef EF Core twin of : Skills contains both "C#" and "SQL", up to 100 whole objects and the count.
C E171_ScalarPlusArray_ef EF Core twin of : Age above 30 and Skills contains "C#", up to 100 whole objects and the count.
C E172_StringLength_ef EF Core twin of : LastName.Length above 6, up to 100 whole objects and the count.
C E173_TreeQueryGroupBy_ef EF Core twin of : a grouping over the whole subtree of a root.
C E174_TreeQueryWindow_ef EF Core twin of : window functions over the whole subtree of a root.
C E175_TreeQueryGroupByWindow_ef EF Core twin of : grouping and window functions over the whole subtree of a root.
C E176_TreeDistinctBy_ef EF Core twin of : a distinct over the whole subtree of a root.
C E177_TreeDistinctByRedb_ef EF Core twin of : a distinct by a header field over the whole subtree of a root.
C E178_TreeOrderBy_ef EF Core twin of : a sorted page of the whole subtree of a root.
C E179_TreeOrderByDescending_ef EF Core twin of : a sorted page of the whole subtree of a root.
C E180_TreeDistinctByOrderBy_ef EF Core twin of : a distinct and sorted page of the whole subtree of a root.
C E181_DeleteSingle_ef EF Core twin of : create an employee, load it, delete it, load it again.
C E182_DeleteBatch_ef EF Core twin of : five employees saved, loaded as whole objects, deleted in one
C E183_FirstOrDefaultAsync_ef EF Core twin of : the top earner above 80000 as a whole object, and a miss.
C E184_WhereNullable_ef EF Core twin of : EmployeeCode null and not null, five whole objects and a
C E185_WhereBool_ef EF Core twin of : two counts and five whole objects under combined conditions.
C E186_ObjectReference_ef EF Core twin of : a project, an employee whose CurrentProject points at it,
C E187_UpdateExisting_ef EF Core twin of : an employee saved, loaded whole with tracking, three fields
C E188_SoftDeleteReference_ef EF Core twin of : a reference to a soft-deleted object. EF Core has no soft delete.
C E190_SumAsyncFiltered_ef EF Core twin of : SUM(Salary) of Engineering and of everyone, two queries.
C E191_WindowFiltered_ef EF Core twin of : ROW_NUMBER over a partition after a filter, which EF Core cannot express.
C E192_AggregateFiltered_ef EF Core twin of : five aggregates over the developers in one query.
C E193_AverageAsyncFiltered_ef EF Core twin of : AVG(Salary) of ages 30 to 40 and of everyone, two queries.
C E194_MinMaxAsyncFiltered_ef EF Core twin of : MIN and MAX of Salary in Sales and overall, four queries as in redb.
C E195_GroupByWindowFiltered_ef EF Core twin of : RANK over grouped totals, which EF Core cannot express.
C E200_SmokeSqlDump_ef EF Core twin of : a dump of redb's own SQL for diffing two redb builders.
C E201_NullCheckBaseIdAmbiguity_ef EF Core twin of : a regression probe of redb's own SQL builder.
C E202_PvtPrefilter_ef EF Core twin of : redb's SQL with and without its own prefilter step.
C E203_SeedVolume_ef EF Core twin of : seeds the same employees, arranged as the same reporting
C E204_TreePrefilter_ef EF Core twin of : filtered counts inside a subtree of any depth.
C E205_WhereRedbSystemFields_ef EF Core twin of : saves three employees with a service key and a
C E206_WhereRedbNarrowsFirst_ef EF Core twin of : a lead with 20 team members under it, then the same
C E997_DateTimeJulianVerify_ef EF Core twin of : three employees with far-apart hire dates, three
C EfExampleBase Base class of the EF Core twins of the examples. A twin carries

redb.Examples.Models

Classes

C Address Address with city, street and building details.
C BuildingInfo Building information with floor and amenities.
C CityProps City props for list examples (linked objects).
C Contact Contact information (email, phone, etc).
C ContactDetail Contact detail key-value pair.
C Department Department info with tags, metrics and nested budget data.
C DepartmentProps Department props for tree examples (corporate hierarchy).
C DeviceConfig
C DeviceIdentity
C DeviceProps Device with every V4 key shape beyond the plain scalar one (E004):
C EmployeeProps Employee props - main model for examples.
C ExampleResultProps Props for storing example test results in redb database.
C ExampleRunProps One timed pass of one example in one run, kept in the results database as a child of the example's
C PersonProps Person props demonstrating ListItem fields.
C PlatformResult Platform-specific test result (Count, Time, Status).
C ProductProps Product with a unique business key (V4 [RedbUnique]): the SKU is unique per scheme,
C ProjectMetricsProps Project metrics for analytics.
C Tag Tag with priority for categorization.

redb.Examples.Output

Classes

C ExampleResult Result of running an example. Used for unified output.
C ExampleRunLog The run history of the examples: every pass of every example in every run, stored in the results dat...
C TableCell Cell with optional color highlighting.
C TablePrinter Simple table printer with Unicode box-drawing and color support.

Enums

E ExampleTier License tier for examples.