dotnet-migrate-repo-controller-to-data-service
OfficialMigrate repo controllers to data-service controllers.
Authorumbrella-libraries
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Migrate an existing Pattern 1 API controller (inheriting GenericRepositoryApiController, direct repository access) to a Pattern 2 controller that is backed by a dedicated controller service, enabling Blazor SSR pre-rendering and centralizing CRUD hooks.
Core Features & Use Cases
- Structured migration workflow: Create or adapt the controller service, rewrite the controller to delegate to the service, and rewire DI across the project.
- Lifecycle hook relocation: Move AfterCreateEntityAsync, AfterUpdateEntityAsync, and AfterDeleteEntityAsync logic into the service to simplify controllers and ensure testability.
- DI & project conventions: Aligns interfaces and DI registrations with existing Umbrella patterns, including optional client service interfaces and ReplaceScoped/AddScoped strategies.
Quick Start
Follow the migration steps to convert a Pattern 1 API controller to a Pattern 2 data-service-backed controller and wire the controller service into the DI container.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dotnet-migrate-repo-controller-to-data-service Download link: https://github.com/umbrella-libraries/Umbrella/archive/main.zip#dotnet-migrate-repo-controller-to-data-service Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.