FruitBankHybridApp/FruitBank.Common/Dtos
Loretta e2c49940c6 Update docs: enforce .md sync, clarify structure & TFMs
Expanded and clarified solution/project documentation:
- Added all top-level docs and docs/ folder as solution items in .sln files
- Inserted maintenance notices in all project and subfolder READMEs: require .md sync with code
- Main READMEs now include project tables with TFM, purpose, and README links
- ARCHITECTURE.md now details dependency graph and TFM rationale
- CONVENTIONS.md and copilot-instructions.md require code reuse, no redundancy
- Glossary and conventions updated to require terminology/rule updates with code changes
- Emphasized DLL-only AyCode.Core refs and nopCommerce .NET 9.0 requirement
- Clarified domain terms and intentional typos
- No code logic changes; documentation and guidance only
2026-03-29 09:26:16 +02: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 Update docs: enforce .md sync, clarify structure & TFMs 2026-03-29 09:26:16 +02: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.