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-dapper

SKILL.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-efcore skill for those cases

Official Documentation

Procedure

  1. Define entity in Core with string Id property — see domain models
  2. If new interface methods needed, extend IRepository<T> in Core
  3. Create Dapper implementation: Dapper implementation
  4. For advanced queries: advanced patterns
  5. Register via DI configuration
  6. Review sample repository for complete pattern
  7. Write tests for the implementation
  8. Manage schema with SQL migration scripts or a migration tool

Key Principles

  • Always use parameterized queries — never concatenate user input into SQL
  • Use using statements for IDbConnection — connections are lightweight and pooled
  • Use CommandType.StoredProcedure when calling stored procedures
  • Prefer QueryAsync<T> over Query<T> for async operations
  • Use ConfigureAwait(false) in all async repository methods
  • Always accept CancellationToken in repository methods (via CommandDefinition)
  • Use IReadOnlyList<T> for collection returns — prevent mutation by callers
  • Use IDbConnectionFactory for testability — never new 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/congiuluc/my-awesome-copilot/repository-dapper/badge)](https://verified-skill.com/skills/congiuluc/my-awesome-copilot/repository-dapper)

Something wrong with this skill or its page? Tell us.