From the course: Migrating ASP.NET Core Web Applications to Azure

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Updating the sample application

Updating the sample application

- [Instructor] Before we can enjoy the database options in Azure, we need to update our application so that a database is actually being used. I'll start, or I've started to be precise, by updating the appsettings.json file, because in there I created a shopContext, a connection string to the database I'd like to use. I'd like to use localdb and then I just want some database. The application is using Entity Framework Core. It has been using that before, however, so far, we have been using the InMemory database provider, which is great for setting up and tearing down applications because with every restart of the application, the database will be recreated. But this time, I'd like to do something meaningful. So I've changed this to useSqlServer and I'm using the connection string shopContext from the appsettings.json file, which I have just created. Now, this requires that I do install a couple of NuGet packages. So for…

Contents