In this section, we are going to install and configure Dapper. We will also install a System.Data.SqlClient package that Dapper uses. Let's carry out the following steps:
- Let's open the backend project in Visual Studio and go to the Tools menu and then the NuGet Package Manager and choose Manage NuGet Packages for Solution....
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 agreement before Dapper is downloaded and installed into our project.
- Still...