Skip to content

Tutorial: Connect a .NET Aspire microservice to an existing database #3858

@1podProgrammer

Description

@1podProgrammer

This tutorial is SUPPOSED to walk through how to Connect a .NET Aspire microservice to an existing database.
The steps take the reader through creating WeatherReport in the VS code. This tutorial DOES NOT connect to an EXISTING DATABASE.

At best this tutorial should

  1. Walk through downloading SQLExpress
  2. Walk through downloading SQL Server Management Studio (SSMS)
  3. Use a tool to create a new database on a local instance of SQLServer
  4. Populate the created database with a few rows (either using an initalize method or hand BOMing)
  5. Then use that database to illustrate the code required to accomplish the tutorial

Or instruct the reader to create a new database named WeatherReport on their SQLServer - SQLExpress Server.
Then use created database as the database of wrote.

Alternately, explain by pointing out in the tutorial WHAT TO CHANGE to succeed in connecting and EXISTING database with Aspire.

I have found far too many times after explicitly following Learn Microsoft. Getting part way through the "lesson" only to be stymied with compile errors. Simply because there has been no version control checks done by the author(s) to remain concurrent with changes in the technology, new package releases (obsolete, version upgrades,so on).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions