Configuring services and the HTTP request pipeline
Now that we have built a website we can return to the configuration and review how services and the HTTP request pipeline work in more detail.
Review the Startup.cs
class file, as shown in the following code:
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.EntityFrameworkCore;
using Packt.Shared;
using System;
using System.IO;
using System.Threading.Tasks;
namespace NorthwindWeb
{
public class Startup
{
// This method gets called by the runtime.
// Use this method to add services to the container.
// For more information on how to configure your application,
// visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
string databasePath = Path.Combine...