connnecting sql server database on azure with mvc .net core on visual studio code code example
Example: how asp.net core works with sql server
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
services.AddDbContext<RazorPagesMovieContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString("RazorPagesMovieContext")));
}