Analysis updated 2026-06-21
Replace verbose ADO.NET row-reading loops with a single Dapper query call that returns a typed list of objects.
Add async database access to an existing .NET app with minimal changes by calling Dapper on your current connection object.
Stream large query results row-by-row using non-buffered mode to avoid loading everything into memory at once.
| dapperlib/dapper | ppy/osu | ardalis/cleanarchitecture | |
|---|---|---|---|
| Stars | 18,288 | 18,333 | 18,171 |
| Language | C# | C# | C# |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 4/5 | 3/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Dapper is a lightweight library for .NET that makes it easier to work with SQL databases from code. In a typical .NET application, querying a database returns raw data that developers must manually convert into the objects their program uses. Dapper automates that mapping step, letting you write a SQL query and immediately get back a list of typed objects without extra boilerplate code. It works by adding extension methods to standard database connection objects, so it slots into existing database code rather than replacing it. The key operations are executing SQL commands that return no data, querying for a list of rows mapped to a specific type, and querying for a single row. You can pass parameters as plain objects, dictionaries, or special parameter collections, and Dapper handles binding them safely to prevent SQL injection attacks. Dapper supports both synchronous and asynchronous database access, and allows queries to return results all at once (buffered) or one row at a time (non-buffered), which is useful for large datasets. The project includes several companion packages: one for building SQL queries dynamically, one that provides simple create, read, update, and delete helpers, and variants that integrate with other data access frameworks. Originally created by the team at Stack Overflow to handle their high-traffic database needs, it is open source and available on NuGet.
Dapper is a lightweight .NET library that maps SQL query results directly to C# objects via extension methods, eliminating boilerplate data-conversion code while keeping full control of the SQL you write.
Mainly C#. The stack also includes C#, .NET, SQL.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.