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
EnsureDatabaseAsync should be removed as now this is handled well by MigrateAsync
MigrateAsync shouldn't be wrapped in a transaction and execution strategy. This is now done internally, and the explicit wrapping can be detrimental in some cases (for migration operations that can't be executed in a transaction).
Seeding should be done using the new UseAsyncSeeding method on DbContextOptionsBuilder. See Upgrade EF to 9.0 dotnet/eShop#488 for additional suggestions.
Related to dotnet/aspire#5207
MigrateAsync
MigrateAsync
shouldn't be wrapped in a transaction and execution strategy. This is now done internally, and the explicit wrapping can be detrimental in some cases (for migration operations that can't be executed in a transaction).UseAsyncSeeding
method onDbContextOptionsBuilder
. See Upgrade EF to 9.0 dotnet/eShop#488 for additional suggestions.Also, use
WaitForResourceAsync(...)
when available.The text was updated successfully, but these errors were encountered: