Added initializer for dev environment for the new dbContexts

This commit is contained in:
Dominic Villemure
2024-08-18 11:06:32 -04:00
parent f5f80fa234
commit 558fe7bc67
5 changed files with 68 additions and 0 deletions

View File

@@ -109,6 +109,8 @@ app.UseAuthorization();
// Initialize and seed the db.
await app.InitialiseApplicationDatabaseAsync();
await app.InitialiseContentDbContextAsync();
await app.InitialiseMessagingDbContextAsync();
await app.SeedDatabaseWithTestDataOnlyIfNoDataIsPresentAsync();
// Configure the HTTP request pipeline.