What problem does it solve?
This Skill eliminates the manual, error-prone work of configuring isolated per-tenant database access for multi-tenant ASP.NET Core applications built with the Jarvis framework, removing the need to manually wire up dependency injection and dynamic connection string routing for each tenant's dedicated database.
Core Features & Use Cases
- Master DbContext Registration: Sets up a master database to store tenant identifiers and their unique connection strings for centralized metadata management.
- Per-Tenant DbContext Configuration: Registers a dedicated App DbContext with a DbTenantConnectionStringResolver to automatically route requests to the correct tenant's isolated database.
- Background Job Support: Provides guidance for switching DbContext instances per tenant in background jobs to ensure data isolation during asynchronous operations.
- Use Case: Ideal for SaaS products built with Jarvis that require strict data separation between tenants, such as multi-tenant e-commerce or SaaS management platforms.
Quick Start
Use the entityframework-dotnet-separate-tenant-db skill to configure master and per-tenant DbContext registrations for your Jarvis multi-tenant application with isolated tenant databases.