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.
This should install Dapper and should add the Dapper library to your project.
Enter your email address to subscribe to this blog and receive notifications of new posts by email.