Use databases in a .NET Aspire project

Intermediate
Developer
Solution Architect
.NET
Visual Studio
Visual Studio Code
.NET Aspire

Learn about the database systems that .NET Aspire can connect to using built-in components. Then see how to configure connections to, and store data in, relational and nonrelational databases.

Learning objectives

By the end of this module, you'll be able to:

  • Describe the database systems that .NET Aspire can connect to using built-in components.
  • Use .NET Aspire components to read and write data to PostgreSQL, MySQL, and Microsoft SQL Server databases.
  • Use .NET Aspire components to read and write data to MongoDB databases.

Prerequisites

  • Experience building web applications using .NET and C#