Changed database provider to Postgres since it handle UUID/GUID correctly
This commit is contained in:
@@ -79,12 +79,12 @@ builder.Services.AddOpenApiDocument((configure, sp) =>
|
||||
configure.OperationProcessors.Add(new AspNetCoreOperationSecurityScopeProcessor("JWT"));
|
||||
});
|
||||
|
||||
var connectionString = builder.Configuration.GetConnectionString("DefaultConnection")
|
||||
?? throw new InvalidOperationException("Missing ConnectionStrings:DefaultConnection");
|
||||
var postgresConnectionString = builder.Configuration.GetConnectionString("PostgresConnection")
|
||||
?? throw new InvalidOperationException("Missing ConnectionStrings:PostgresConnection");
|
||||
|
||||
builder.Services.AddFastEndpoints();
|
||||
builder.Services.AddContentModule(options => options.UseSqlServer(connectionString));
|
||||
builder.Services.AddMessagingModule(options => options.UseSqlServer(connectionString));
|
||||
builder.Services.AddContentModule(options => options.UseNpgsql(postgresConnectionString));
|
||||
builder.Services.AddMessagingModule(options => options.UseNpgsql(postgresConnectionString));
|
||||
|
||||
builder.Services.Configure<JwtOptions>(builder.Configuration.GetRequiredSection(JwtOptions.SectionName));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user