Installing and configuring Dapper
In this section, we are going to install and configure Dapper. We will also install the Microsoft SQL Server client package that Dapper uses. Let's carry out the following steps:
- Let's open the backend project in Visual Studio. Go to the Tools menu and then NuGet Package Manager and choose Manage NuGet Packages for Solution....
Important Note
NuGet is a tool that downloads third-party and Microsoft libraries and manages the references to them so that the libraries can easily be updated.
- On the Browse tab, enter
Dapper
into the search box. - Select the Dapper package by Sam Saffron, Marc Gravell, and Nick Craver. Tick our project and click the Install button with the latest stable version selected. Refer to the following screenshot:
We may be asked to accept a licensing...