There is relatively easy to use – just go to your web app in Azure,Configuration,ConnectionStrings and add your data.
This tutorial is based on the following article:
https://docs.microsoft.com/en-us/azure/app-service/tutorial-dotnetcore-sqldb-app
The .NET Core code is simple:
services.AddDbContext<MyDatabaseContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString(“AZURE_SQL_CONNECTIONSTRING”)));
Leave a Reply