entityframework-dotnet

Configure Entity Framework Core multitenancy and unit of work for .NET 9 projects.

12|2|Updated May 4, 2020
One-click install
npx skills add https://github.com/hoangnh2412/jarvis --skill entityframework-dotnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: entityframework-dotnet
Source: https://github.com/hoangnh2412/jarvis/tree/main/.opencode/skills/entityframework-dotnet
Command: npx skills add https://github.com/hoangnh2412/jarvis --skill entityframework-dotnet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Setting up Entity Framework Core with multitenancy, unit of work, and repository patterns in Jarvis .NET projects requires manual boilerplate code, correct dependency injection ordering, and handling of multiple database models, which is error-prone and time-consuming for backend development teams.

Core Features & Use Cases

  • Multitenancy Pattern Support: Configure shared single database, per-tenant dedicated database, or hybrid multitenancy models for SaaS applications.
  • Integrated UoW & Repository Setup: Automate registration of unit of work, DbContext, and tenant resolvers with enforced correct DI ordering to avoid common misconfigurations.
  • Use Case: A .NET backend team building a multi-tenant SaaS with Jarvis can use this skill to eliminate setup errors and reduce EF integration time from hours to minutes.

Quick Start

Use the entityframework-dotnet skill to configure EF Core multitenancy and unit of work for your new Jarvis .NET backend project.

Frequently Asked Questions about entityframework-dotnet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Entity Framework Core multitenancy in a .NET 9 backend project?

Entity Framework Core multitenancy in .NET 9 is configured by automating DbContext registration, tenant resolvers, and dependency injection. This setup eliminates manual boilerplate and ensures correct DI ordering for SaaS applications.

What is the difference between shared database and hybrid multitenancy models in EF Core?

EF Core multitenancy supports shared single database, per-tenant dedicated database, and hybrid models. The hybrid approach combines both strategies, allowing flexible data isolation while using a custom tenant resolver for connection string routing.

How do I implement unit of work and repository patterns with EF Core multitenancy?

Unit of work and repository patterns integrate with EF Core multitenancy by enforcing correct dependency injection ordering during DbContext registration. This automation handles tenant context switching and avoids common configuration errors in backend projects.

Does this multitenancy setup support background jobs in .NET applications?

Multitenancy setup supports background jobs in .NET applications by ensuring proper tenant context switching and cached tenant connection string resolution. This guarantees production environments maintain correct tenant isolation during asynchronous processing.

Can I use a custom tenant resolver with Entity Framework Core in Jarvis?

You can implement a custom tenant resolver with Entity Framework Core in Jarvis to handle connection string resolution dynamically. This supports switching between shared, dedicated, and hybrid multitenancy database models.