repowisedapperlib/dapper

Architecture of dapperlib/dapper

dapperlib/dapper is 174 source files holding 3,203 symbols across 7 modules, written mainly in C#. The largest module is tests, with 56 files, and 3 files are entry points into the dependency graph.

How dapper fits together

Calls begin with extension methods on a DbConnection, mainly Execute, Query and QuerySingle, which take SQL text and optional arguments. The Dapper directory holds the core library that runs the SQL and maps rows to objects. Dapper.Rainbow is a micro-ORM built on Dapper that provides CRUD helpers. Dapper.SqlBuilder is a component for building SQL queries dynamically and composably. Dapper.EntityFramework contains extension handlers for EntityFramework, with Dapper.EntityFramework/DbGeographyHandler.cs as a central file. The tests directory holds the test suite, and benchmarks/Dapper.Tests.Performance/Program.cs is the entry point for the performance tests.

Largest modules

  • tests: 56 files and 8,941 lines of code
  • Dapper: 51 files and 6,768 lines of code
  • benchmarks: 38 files and 3,118 lines of code
  • Dapper.Rainbow: 6 files and 561 lines of code
  • root: 5 files and 482 lines of code
  • .github: 4 files and 124 lines of code
  • Dapper.ProviderTools: 4 files and 284 lines of code
  • docs: 4 files and 256 lines of code

Documentation

Repowise documents dapper in 285 pages generated from the source.

More on dapper: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos