Building Business Screens with Cotomy
A practical guide showing how I usually structure search screens, edit screens, and read-only screens in Razor Pages with Cotomy.
A practical guide showing how I usually structure search screens, edit screens, and read-only screens in Razor Pages with Cotomy.
Cotomy project templates for Razor Pages are now available in Standard and Professional editions. They are designed for CRUD-heavy business applications where teams want to avoid rebuilding page structure, form flow, authentication, and persistence from scratch.
In CRUD screens, the core problem is often not where state is stored, but whether the mutation path is defined. Once load, input, save, and reload are allowed to diverge, the screen becomes difficult to reason about.
Server-side postback screens were limited, but they kept one execution path. Once Ajax became the main update mechanism, keeping display, input state, and server truth aligned became a structural problem.
State failures in business UIs are usually not isolated bugs. They appear when DOM state, in-memory state, and server state have no explicit ownership and synchronization rules.
Why I moved from natural keys to surrogate keys, and why that change made both database design and application code easier to manage.
Why I care about keeping names consistent from Entity Framework models to Razor Pages forms and Cotomy, and how that reduces mistakes in long-lived business systems.
Why I stopped placing shared TypeScript infrastructure at the solution root and moved it into Core so Razor Pages and Cotomy could form one coherent application foundation.
How I place page-level TypeScript next to Razor Pages files and build a small shared foundation so Cotomy can stay aligned with endpoint boundaries.
Why inheritance is rarely used when designing entities in business systems.