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

434 B

Add a database connection string

Add a connection string to the appsettings.json file.

[!code-jsonMain]

Register the database context

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