congiuluc/my-awesome-copilot/repository-dapper
Claude Code and agent skill by congiuluc/my-awesome-copilot
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Implement data access using Dapper micro-ORM with the IRepository<T> pattern. Covers raw SQL queries, stored procedures, multi-mapping, bulk operations, and DI registration. Use when: creating Dapper repositories, writing raw SQL queries, implementing read-optimized data access, using stored procedures, or building reporting/dashboard queries.
Install
npx vskill@latest install congiuluc/my-awesome-copilot/repository-dapperSKILL.md
The same SKILL.md was published earlier as congiuluc/my-awesome-copilot/repository-dapper.
Repository Pattern — Dapper
When to Use
- Performance-critical read queries (reporting, dashboards, analytics)
- Scenarios requiring raw SQL or stored procedures
- Lightweight read models that don't need change tracking
- Multi-mapping queries joining multiple tables into complex DTOs
- Bulk insert/update operations
- When you need full control over the generated SQL
When to Use EF Core Instead
- LINQ-based queries with compile-time type safety
- Change tracking and unit-of-work patterns
- Schema migrations with
dotnet ef - Complex navigation properties and lazy/eager loading
- Use the
repository-efcoreskill for those cases
Official Documentation
Procedure
- Define entity in Core with
string Idproperty — see domain models - If new interface methods needed, extend
IRepository<T>in Core - Create Dapper implementation: Dapper implementation
- For advanced queries: advanced patterns
- Register via DI configuration
- Review sample repository for complete pattern
- Write tests for the implementation
- Manage schema with SQL migration scripts or a migration tool
Key Principles
- Always use parameterized queries — never concatenate user input into SQL
- Use
usingstatements forIDbConnection— connections are lightweight and pooled - Use
CommandType.StoredProcedurewhen calling stored procedures - Prefer
QueryAsync<T>overQuery<T>for async operations - Use
ConfigureAwait(false)in all async repository methods - Always accept
CancellationTokenin repository methods (viaCommandDefinition) - Use
IReadOnlyList<T>for collection returns — prevent mutation by callers - Use
IDbConnectionFactoryfor testability — nevernew SqlConnection()directly
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/repository-dapper/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/congiuluc/my-awesome-copilot/repository-dapper)