extend-objects-with-extra-properties
Installation
SKILL.md
Extending Objects with Extra Properties
IHasExtraProperties gives an object an ExtraPropertyDictionary, while ObjectExtensionManager defines the names, types, defaults, validation metadata, and persistence/mapping metadata for those entries. This is framework-level object extension, not the module-specific extension API for installed ABP modules.
When to Use
- Add runtime-defined properties to your own entity, aggregate root, command DTO, or result DTO.
- Read and write typed values without adding CLR properties.
- Persist the dictionary as JSON with EF Core or as MongoDB extra elements.
- Promote selected EF Core extra properties to dedicated columns.
- Copy explicitly defined extra properties between an entity and DTO.
When Not to Use
- Customize an installed pre-built module — use customize-application-modules and its module extension configurator.
- Map ordinary CLR members — use map-objects-and-dtos.
- Design entities, value objects, or aggregate invariants — use model-domain-aggregates.