HomeCSharpDapper.NET Guide – Installing Dapper

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

You May Also Like

This C# program calculates and displays an upper triangular matrix based on user input. Problem Statement: The program takes the...
This C# program serves as a demonstration of bitwise operators, which are fundamental operators used for manipulating individual bits in...
This C# program is designed to interchange or swap the columns of a matrix. A matrix is a two-dimensional array...