Use a database with minimal API, Entity Framework Core, and ASP.NET Core

Beginner
Developer
Student
Visual Studio
.NET
ASP.NET Core
Visual Studio Code

Learn how to add a database to a minimal API application.

Learning objectives

In this module, you will:

  • Learn how to add Entity Framework Core to a minimal API application.
  • Persist data to an in-memory datastore.
  • Persist data to a SQLite database.

Prerequisites

  • Familiarity with .NET 6
  • A basic understanding of what an API is