What problem does it solve?
This skill standardizes the process of adding a new persisted domain entity into the main application context. It ensures the entity is placed in the correct domain layer, the naming is consistent, and the persistence wiring across Domain, IMainContext, and MainContext is properly configured. It also enforces creating the Domain repository contract, the EFCore implementation, and the necessary configuration so startup, migrations, and usage remain reliable.
Core Features & Use Cases
- Domain placement: ensures the new entity resides in the Domain and is wired into the main context.
- Repository contracts and EFCore wiring: creates I<Entity>Repository in Domain and <Entity>Repository in EFCore, with proper base classes and DI wiring.
- Configuration and migrations: adds <Entity>Configuration and registers it in MainContext.OnModelCreating, plus generates a migration when the schema changes.
Quick Start
Create a new persisted domain entity following the established wiring rules and EFCore configuration.