Path: redb/redb.Examples/Models/ExampleResultProps.cs
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Examples/Models/ExampleResultProps.cs
----
using redb.Core.Attributes;
namespace redb.Examples.Models;
///
/// Platform-specific test result (Count, Time, Status).
/// Used as value in Dictionary for each platform.
///
public class PlatformResult
{
/// Number of objects processed/found.
public int? Count { get; set; }
/// Execution time in milliseconds.
public int? Time { get; set; }
/// Status: "OK", "FAIL", or error message.
public string? Status { get; set; }
/// Database round trips the example made.
public int? Queries { get; set; }
}
///
/// Props for storing example test results in redb database.
/// Key (E001, E002...) stored in RedbObject._value_string.
/// Title stored in RedbObject._name.
///
[RedbScheme("ExampleResult")]
public class ExampleResultProps
{
/// License tier: "Free", "Pro", "Enterprise".
public string Tier { get; set; } = string.Empty;
///
/// Results by platform: "mssql", "mssql.pro", "postgres", "postgres.pro".
/// Each platform has Count, Time, Status.
///
public Dictionary? Results { get; set; }
}