Skip to content

Adding async capability to database seeding operations #734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 8, 2024
Merged

Adding async capability to database seeding operations #734

merged 2 commits into from
May 8, 2024

Conversation

samanazadi1996
Copy link
Contributor

In this commit, the Initialize and PopulateTestData methods in the SeedData class have been modified to be async. Additionally, the SeedDatabase method has been converted to an async method. These changes improve the performance and responsiveness of the application by allowing database seeding operations to be performed asynchronously, enhancing the overall program efficiency.

@ardalis ardalis merged commit 9ff2ee5 into ardalis:main May 8, 2024
@ardalis
Copy link
Owner

ardalis commented May 8, 2024

Thanks

@reifenrath-dev
Copy link

The FunctionalTests project does not build with these changes, because the Contributor1 and Contributor2 properties @samanazadi1996 removed are used by the unit tests. Also the CustomWebApplicationFactory uses PopulateTestData in a synchronous override. Please revert or fix the Tests.

@samanazadi1996
Copy link
Contributor Author

Test errors were fixed in the new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants