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
Add seeding logic that's conditional on the environment (i.e. Development would have more seed data for testing compared to Production)
Pass through the name of the target migration to MigrateAsync to add clarity to the code and an additional step that could prevent a migration to be accidentally applied to Production
The text was updated successfully, but these errors were encountered:
EF 9.0 has a number of significant improvements for migrations.
InvokeSeeder
UseAsyncSeeding
method onDbContextOptionsBuilder
This can be done before dotnet/aspire#5207
Optional changes to illustrate best practices:
MigrateAsync
to add clarity to the code and an additional step that could prevent a migration to be accidentally applied to ProductionThe text was updated successfully, but these errors were encountered: