Path: redb/redb.Templates/templates/route-xml/redb-route-redb/Props/OrderProps.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/route-xml/redb-route-redb/Props/OrderProps.cs
----
using redb.Core.Attributes;
namespace RouteModule.Props;
///
/// The props of an order object. The class is the scheme: <syncScheme> in context.xml creates
/// or updates it at context start, the routes save and query objects of it. A new property is a new
/// field of the scheme on the next start; no DDL anywhere.
///
[RedbScheme("modulectx order")]
public class OrderProps
{
/// Who ordered.
public string Customer { get; set; } = string.Empty;
/// The order amount; changes on every save of the demo.
public decimal Amount { get; set; }
/// The order status.
public string Status { get; set; } = "new";
}