AspNetCore.Docs/aspnetcore/includes/RP/model2a.md

430 B

Add a database connection string

Add a connection string to the appsettings.json file.

[!code-json]

Register the database context

Register the database context with the dependency injection container in the Startup.cs file.