Changed database provider to Postgres since it handle UUID/GUID correctly

This commit is contained in:
Jonathan Bourdon
2024-07-18 00:03:19 -04:00
parent 769586cc15
commit a8b7860fd8
26 changed files with 107 additions and 355 deletions

View File

@@ -21,8 +21,8 @@ public static class DependencyInjection
{
// Replace password in the connection string with env var in local environment.
// Prod will use the connectionString stored in the vault with password in it directly.
var connectionString = configuration.GetConnectionString("DefaultConnection")
?? throw new InvalidOperationException("Missing ConnectionString: DefaultConnection");
var connectionString = configuration.GetConnectionString("MssqlConnection")
?? throw new InvalidOperationException("Missing ConnectionStrings:MssqlConnection");
services.AddScoped<ISaveChangesInterceptor, AuditableEntityInterceptor>();
services.AddScoped<ISaveChangesInterceptor, DispatchDomainEventsInterceptor>();