Use databases in a .NET Aspire project

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

Learn about the database systems that .NET Aspire can connect to using built-in integrations. 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 integrations.
  • Use .NET Aspire integrations to read and write data to PostgreSQL, MySQL, and Microsoft SQL Server databases.
  • Use .NET Aspire integrations to read and write data to MongoDB databases.
  • Understand the basics of testing in .NET Aspire.
  • Create a test project using xUnit.
  • Write and run tests for .NET Aspire projects.
  • Utilize the .NET Aspire testing project templates.

Prerequisites

  • Experience building web applications using .NET and C#