-
Notifications
You must be signed in to change notification settings - Fork 4
Getting Started
We wanted to make using Dapper.SimpleLoad similar to using Dapper so, just like Dapper's API, you load objects by calling extension methods on IDbConnection.
Here's what you need to do to get up and running:
- Add the Dapper.SimpleLoad Nuget package to your solution, and include it in any projects where you need to use it. The easiest way to do this is via the Package Manager Dialog in Visual Studio 2013 or 2015. To get to this, right-click your solution in Solution Explorer, then click Manage Nuget Packages for Solution.

This will also install the Dapper.SimpleSave and Dapper packages, if they are not already installed.
-
Import the Dapper.SimpleLoad namespace in any source files where you want to use Dapper.SimpleLoad.
-
Decorate any DAOs or other objects you want to save to the database with appropriate SimpleLoad attributes. Take a look at our first example to get you started.
-
Call extension methods on IDbConnection to load objects. We provide various
AutoQuery<T ...>, andCustomQuery<T ...>methods. Check out the extension method reference for more information.