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
@robinwilson16 given seeding the DB is a one-time operation for non-production code, simplicity/debugabilty is more important. I've had to debug seed code more than once.
The DB initializer is only used early in project development, not in production code. It's OK to use Sync in this case since best perf is not a concern.
The documentation says to always use asynchronous code yet the code given in DbInitializer.cs is synchronous.
The code should be re-written to use asynchronous methods (unless I am missing something).
This would involve changing commands from:
To
Either seems to work ok though and produce the desired result. Maybe as it only runs once during project startup it doesn't really matter?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: