Open bertgroenveld opened 1 month ago
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
As it so happens, I'm working on this doc now! Thanks for the report, @bertgroenveld!
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