Skip to content
Bart Read edited this page Dec 11, 2015 · 1 revision

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:

  1. 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.

Visual Studio Nuget package manager dialogs

This will also install the Dapper.SimpleSave and Dapper packages, if they are not already installed.

  1. Import the Dapper.SimpleLoad namespace in any source files where you want to use Dapper.SimpleLoad.

  2. 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.

  3. Call extension methods on IDbConnection to load objects. We provide various AutoQuery<T ...>, and CustomQuery<T ...> methods. Check out the extension method reference for more information.

Clone this wiki locally