Commit Graph
7 Commits
Author SHA1 Message Date
mostalive 406e8a97f6 docs(AGENTS): document mmdc for rendering mermaid diagrams to svg 2026-09-11 16:31:26 +01:00
mostalive bd4afcc935 AGENTS.md: note DOTNET_CLI_HOME workaround for sandboxes that block ~/.dotnet-cli 2026-09-11 16:02:35 +01:00
mostalive c22a1e2ffa Yak: csharp after situation (Yak 02) — plain domain + DTOs + mappers
After/: plain Client/Order (no DbBase), ClientDto/OrderDto records
carrying the relations both ways, hand-written Mappers with a
reference-identity cache for the back-reference cycle, DbContext with
explicit Save(domain) via shadow entities (flipped dependency), and a
WebApp that consumes only DTOs. AfterTests cover the 7 required
behaviours; full solution builds with 0 warnings, 26/26 tests pass.
2026-09-11 15:02:35 +01:00
mostalive 463245288a Yak: csharp before situation (Yak 01) — DB-backed domain classes
Add the C# BEFORE situation: a fake-EF DbContext + DbBase that Client/Order
inherit, the active-record DbContext back-reference (the dependency leak),
navigation fix-up on Client.Orders, and a WebApp that consumes the domain
classes directly. Adds an empty After project so the solution shape is final,
and an xUnit BeforeTests suite covering the required assertions.

- db-subclass-to-dto.sln (classic .sln; SDK 10 defaults to .slnx which breaks run-tests.sh)
- src/Before: DbBase, DbContext, Client (+ClientOrders fix-up), Order, WebApp
- src/After: empty placeholder (filled in Yak 02)
- tests/BeforeAfter.Tests/BeforeTests.cs: 8 tests (7 required + 1 companion)
2026-09-11 13:03:09 +01:00
mostalive 7e38f67e0b Add AGENTS.md, dotnet/mise wrapper scripts, migrate yaks to yx 2026-09-10 18:12:50 +01:00
mostalive 42b3c502a1 Add yaks 01 (before: fake EF DbBase inheritance) and 02 (after: DTOs + mappers) for the next agent 2026-09-10 18:04:46 +01:00
mostalive 9d0079cbf0 Add mermaid diagrams of before (DbBase inheritance) and after (DTO + mappers) situation 2026-09-10 17:57:45 +01:00