configure-connection-strings
Installation
SKILL.md
Configure Connection Strings in ABP
ABP's connection string system is designed for modular and multi-tenant apps: every module can point at its own physical database, and every tenant can use a separate database. A single monolithic app with one DB just uses Default.
When to Use
- You need to set the
Defaultconnection for a single-database app. - You want to give a module its own physical database with a named connection string.
- You want to bind a
DbContextto a named connection string via[ConnectionStringName]. - You want to group several modules into one shared database with
AbpDbConnectionOptions.Databases. - You need per-tenant database routing in a multi-tenant SaaS app.
- You need custom connection-string resolution logic via
IConnectionStringResolver.
When Not to Use
- EF Core
DbContextregistration or model configuration — use ef-core-integration. - MongoDB client/database setup — use mongodb-integration.
- Creating tenants or configuring the tenant store itself — use configure-multi-tenancy (this skill only routes an existing tenant to a database).
- Unit-of-work / transaction handling — use manage-units-of-work.