Repository navigation
EntityAxis v0.1.0
Pre-release
Pre-release
✨ Features
- Refactored
IEntityId<T>to removesetaccessor, enabling encapsulated domain entities (initorprotected set) - Added
outkeyword toTfor covariance support (e.g., useIEntityId<Guid>asIEntityId<object>) - Removed
Idreset logic fromUpdateEntityHandlerto give consumers full control over identity handling
⚠️ Breaking Changes
- Implementations relying on
public setforIdmust now assign identifiers via constructor or mapping - Consumers must ensure
Idis not overwritten during update mapping (e.g., configure AutoMapper to ignoreId)
🛠 Migration Notes
-
Update your entities to implement
IEntityId<T>usinginitorprotected set -
Configure your mapping profiles to ignore the
Idfield during updatesCreateMap<UpdateOrderModel, Order>() .ForMember(dest => dest.Id, opt => opt.Ignore());