Path: redb/redb.Templates/templates/redb-app/RedbApp.Api/Props/Product.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.Templates/templates/redb-app/RedbApp.Api/Props/Product.cs ---- using redb.Core.Attributes; namespace RedbApp.Api.Props; /// /// The Props of a product. The object's name is not here: it is the object's own field /// (RedbObject.Name). Each property is stored in a typed column, so filters and sorting on them run /// in the database. /// [RedbScheme("Product")] public class Product { public string Category { get; set; } = string.Empty; public decimal Price { get; set; } public bool InStock { get; set; } public string? Description { get; set; } } /// /// A node of the category tree. The hierarchy itself is part of the object, not of the Props: a node is a /// TreeRedbObject<Category>, and deleting a node deletes its subtree. /// [RedbScheme("Category")] public class Category { public int SortOrder { get; set; } }