Updating the Code to Store in Microsoft Azure SQL Database

Update the code to support saving image data to the Azure SQL database.

We'll cover the following

Preparing the code

Now that we’ve created our database and table where we’ll store the data, it’s time to modify our API to store the image description data in the database.

  • First, we need to add a project reference to the SQL Client to enable us to interact with the Azure SQL server from our code. In the .csproj file, we will add the following package reference:

Get hands-on with 1300+ tech skills courses.