Subscribe to our YouTube Channel for more Videos

Dapper.NET Guide – Installing Dapper

You can install or add Dapper to the project in one of the two ways as shown below.

1. Using the Dapper’s SQL Mapper File.

This is the first option where you can directly get the file from the Dapper project repository and from Dapper NET40 folder and copy the SQLMapper.cs file to your project. Dapper is actually a single file and by just adding this file to your project you can integrate the dapper functionalities within your project using the iDbConnection interface.

2. NuGet Package Manager

The other easy option to add Dapper to your project is using the Nuget Package Manager .

Open the Nuget Package Manager Console and execute the below command.

Install-Package Dapper


This should install Dapper and should add the Dapper library to your project.


Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.