https://github.com/phnx47/dapper-repositories
CRUD for Dapper
https://github.com/phnx47/dapper-repositories
crud-generator dapper dapper-extensions micro-orm repository-pattern sql-generator
Last synced: 2 months ago
JSON representation
CRUD for Dapper
- Host: GitHub
- URL: https://github.com/phnx47/dapper-repositories
- Owner: phnx47
- License: mit
- Created: 2015-04-07T20:40:22.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2026-03-28T12:31:26.000Z (2 months ago)
- Last Synced: 2026-03-28T15:56:56.452Z (2 months ago)
- Topics: crud-generator, dapper, dapper-extensions, micro-orm, repository-pattern, sql-generator
- Language: C#
- Homepage: https://www.learndapper.com/extensions/microorm-dapper-repositories
- Size: 1.71 MB
- Stars: 701
- Watchers: 54
- Forks: 210
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# MicroOrm.Dapper.Repositories
[](https://github.com/phnx47/dapper-repositories/actions/workflows/ci.yml)
[](https://www.nuget.org/packages/MicroOrm.Dapper.Repositories)
[](https://www.nuget.org/packages/MicroOrm.Dapper.Repositories)
[](https://codecov.io/gh/phnx47/dapper-repositories)
[](https://github.com/phnx47/dapper-repositories/blob/main/LICENSE)
## Description
If you like your code to run fast, you probably know about Micro ORMs. They are simple and one of their main goals is to be the fastest execution of your SQL sentences in your data repository. For some Micro ORMs you need to write your own SQL sentences and this is the case of the most popular Micro ORM [Dapper](https://github.com/DapperLib/Dapper).
This library abstracts the generation of SQL for CRUD operations based on each C# POCO class metadata. The SQL Generator is a generic component that builds all CRUD sentences for a POCO class based on its definition, with the possibility to override the SQL generator and the way it builds each sentence.
The library is designed to help with common, simple queries so you don't have to write repetitive SQL by hand. It does not try to cover every possible scenario - for complex queries you should write SQL directly using [Dapper](https://github.com/DapperLib/Dapper).
Read the full documentation at [Learn Dapper](https://www.learndapper.com/extensions/microorm-dapper-repositories).
## Sponsors
[Dapper Plus](https://dapper-plus.net/?utm_source=phnx47&utm_medium=MicroOrm.Dapper.Repositories) and [Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=phnx47&utm_medium=MicroOrm.Dapper.Repositories) are major sponsors and are proud to contribute to the development of [MicroOrm.Dapper.Repositories](https://github.com/phnx47/dapper-repositories)
[](https://dapper-plus.net/bulk-insert?utm_source=phnx47&utm_medium=MicroOrm.Dapper.Repositories)
[](https://entityframework-extensions.net/bulk-insert?utm_source=phnx47&utm_medium=MicroOrm.Dapper.Repositories)
## License
Inspired by [Diego García's Dapper.DataRepositories](https://github.com/ElNinjaGaiden/Dapper.DataRepositories).
All contents of this package are licensed under the [MIT license](https://opensource.org/licenses/MIT).