Third Party Library - Dapper.SimpleCRUD
Dapper.SimpleCRUD is a small library package which adds basic CRUD operations to Dapper. Dapper.SimpleCRUD uses smart defaults without using attributes is your classes, but it can also be overridden as needed.
- The id column is used as a primary key by default, but you can override it with an attribute.
- By default, queries expect that table name is matching the class name, but you can override it with an attribute.
- Similarly, queries expect that column name is matching the property name, but you can also override it with an attribute.
Dapper Extensions is only available through NuGet: https://www.nuget.org/packages/Dapper.SimpleCRUD/
You can easily install this library by running the following command:
PM> Install-Package Dapper.SimpleCRUD
More information can be found at: https://github.com/ericdc1/Dapper.SimpleCRUD/
Once you installed this library, the following extension methods will automatically add to DbConnection:
You can use these extension methods easily in your code.
You can find more information and documentation here: https://github.com/ericdc1/Dapper.SimpleCRUD
This library is supported on a regular basis and you will get your answers within next few days. https://github.com/ericdc1/Dapper.SimpleCRUD/issues