Use a database with minimal API Entity Framework Core and ASP.NET Core Learn how to add a database to a minimal API application.