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

image

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

2

    1 Comment

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

C# Compiler Error CS0442 – ‘Property’: abstract properties cannot have private accessors Reason for the Error You’ll get this error...
This is a really simple one . Below is a simple example of an enum called “Designation” defined with the...
This blog post explain the usage of the Checked Block in .NET and how you can use them in Visual...