434 B
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.