dotnet / docs-aspire

This repository contains .NET Aspire documentation.
https://learn.microsoft.com/dotnet/aspire
MIT License
64 stars 68 forks source link

Article 'Apply Entity Framework Core migrations in .NET Aspire' misses step #1012

Open bertgroenveld opened 1 month ago

bertgroenveld commented 1 month ago

Describe the issue or suggestion

Apply Entity Framework Core migrations in .NET Aspire misses one step. Program.cs of the MigrationService should add these lines: `builder.AddServiceDefaults();

builder.Services.AddOpenTelemetry() .WithTracing(tracing => tracing.AddSource(Worker.ActivitySourceName));

builder.AddSqlServerDbContext("sqldata");`


Associated WorkItem - 263589

CamSoper commented 1 month ago

As it so happens, I'm working on this doc now! Thanks for the report, @bertgroenveld!