FruitBankHybridApp/FruitBank.Common/Dtos
Loretta 45195b9cdf Add LLM onboarding docs and standardize project READMEs
- Introduced `.github/copilot-instructions.md` as the single source of truth for domain rules, conventions, and pitfalls in each solution.
- Added `CLAUDE.md` to guide Claude to read domain rules, glossary, and README before code generation.
- Updated all solution and project `README.md` files to document project purpose, structure, key files, and LLM context (Copilot/Claude/Cursor).
- Added or revised `docs/ARCHITECTURE.md`, `docs/CONVENTIONS.md`, and `docs/GLOSSARY.md` to clarify dependency graphs, naming, patterns, and terminology.
- For FruitBankHybridApp, added `docs/SCHEMA.md` (Toon format) and expanded the glossary with business/measurement terms and common traps.
- Updated all subfolder READMEs to list key files, conventions, and LLM maintenance notes.
- Ensured all documentation is cross-referenced, up-to-date, and includes explicit instructions for LLMs to keep docs in sync with code and avoid suggesting removal/rollback as a solution.
- Standardized documentation and onboarding for maintainability and LLM/code quality across all solutions.
2026-03-28 22:38:23 +01:00
..
GenericAttributeDto.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
MeasuringProductDto.cs Improvements, fixes, etc... 2025-11-05 14:56:07 +01:00
OrderDto.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
OrderItemDto.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
ProductDto.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00
README.md Add LLM onboarding docs and standardize project READMEs 2026-03-28 22:38:23 +01:00
StockQuantityHistoryDto.cs Enable source-generated binary serialization & AOT 2026-03-07 14:05:39 +01:00

README.md

Dtos

Binary-serializable DTOs for efficient SignalR communication. All marked with [AcBinarySerializable].

Key Files

  • OrderDto.cs — Order with items, measurement status, auditing, receipt date, GenericAttributes. Computed: IsMeasured, IsComplete, MeasuringStatus, RevisorId.
  • OrderItemDto.cs — Order line item with OrderItemPallet collection. Computed: NetWeight, GrossWeight, AverageWeight, AverageWeightIsValid, IsMeasured, IsAudited.
  • ProductDto.cs — Product with GenericAttribute-backed properties: IsMeasurable, Tare, AverageWeight, AverageWeightTreshold, IncomingQuantity, NetWeight.
  • StockQuantityHistoryDto.cs — Stock history with net weight adjustments and inconsistency detection.
  • GenericAttributeDto.cs — Key-value attribute wrapper. Polymorphic: KeyGroup = owner type, EntityId = owner ID.

Why DTOs Exist

nopCommerce entities (Order, OrderItem, Product) are extended with measurement logic via these DTOs. The DTOs add computed properties and GenericAttribute access that the raw nopCommerce entities don't have.


LLM Maintenance: If you modify code in this folder, update this README to reflect the changes. If you notice the README content does not match the current code, automatically update the README to match the code.