Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update database seeding implementation to use EF Core 9 `UseAsy…
…ncSeeding` method - Introduced `AddAsyncSeeding` extension method to integrate the new `UseAsyncSeeding` approach introduced in EF Core 9. - Refactored `ApplicationDbContextInitialiser` seeding logic to align with the new asynchronous seeding mechanism. - Updated `AddDbContext` configuration in `AddInfrastructureServices` to use the `AddAsyncSeeding` method for all database providers (`PostgreSQL`, `SQLite`, `SQL Server`). - Separated database initialization (`InitialiseAsync`) and seeding (`SeedAsync`) into distinct operations for better alignment with the new seeding approach. - Maintained compatibility with dependency injection for interceptors and service provider usage. This change modernizes the database seeding process to leverage the improved EF Core 9 capabilities, ensuring better integration with async workflows.
- Loading branch information