Dapper.SimpleSave is a small NuGet library that extends the IDbConnection
interface, which adds the basic CRUD operations to Dapper.
The following is the list of extension methods that are provided in Dapper.SimpleSave.
Method | Description |
---|---|
Create | Insert a single record |
CreateAll | Insert a list of records |
Update | Update a single record |
UpdateAll | Update a list of records |
Delete | Delete a record based on primary key or typed entity |
DeleteAll | Delete a list of records based on the typed entities |
SoftDelete | Soft delete a record based on primary key or typed entity |
SoftDeleteAll | Soft delete a list of records based on the typed entities |
You can easily install it from the Package Manager Console window by running the following command.
PM> Install-Package Dapper.SimpleSave
The following are the currently known limitations.
int
, long
, and GUID
primary keys are supported.