You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET Aspire includes components for using various Entity Framework Core providers. At the moment, the scaffolders that include EF Core aren't aware of the top-level methods that register the DbContext with the app's DI and thus add additional calls to add the DbContext the non-Aspire way, which leads to issues.
We should consider updating the EF Core scaffolders to detect the use of .NET Aspire and not add the calls to AddDbContext in those cases.
The text was updated successfully, but these errors were encountered:
.NET Aspire includes components for using various Entity Framework Core providers. At the moment, the scaffolders that include EF Core aren't aware of the top-level methods that register the
DbContext
with the app's DI and thus add additional calls to add theDbContext
the non-Aspire way, which leads to issues.We should consider updating the EF Core scaffolders to detect the use of .NET Aspire and not add the calls to
AddDbContext
in those cases.The text was updated successfully, but these errors were encountered: