query-with-dapper
Installation
SKILL.md
Query with Dapper in ABP
ABP's Volo.Abp.Dapper integration lets you write raw-SQL repositories with Dapper while staying inside ABP's unit of work. The integration is built on top of EF Core: EF Core stays the primary provider and you reach for Dapper only to fine-tune specific queries for maximum performance.
When to Use
- A heavy read or aggregate query where EF Core's generated SQL is too slow.
- SQL you want full hand control over, on a hot path.
- You want raw SQL that still participates in ABP's unit of work, connection, and transaction.
When Not to Use
- Standard CRUD, LINQ, change tracking, entities, migrations — use ef-core-integration; use it for almost everything.
- MongoDB queries — use mongodb-integration; the Dapper integration requires an EF Core
DbContext. - Configuring the unit of work itself — use manage-units-of-work (this skill only borrows the ambient UoW).
- Connection string / per-tenant database routing setup — use configure-connection-strings (Dapper inherits routing from the underlying
DbContext).