Add AutoMapper and update database connection string

Updated `DependencyInjection.cs` to register AutoMapper with all profiles from the assembly, improving object mapping setup.

Modified `appsettings.json` to update the connection string for `SDD-VMP04-SQL17`, including a new server name and a more secure password, reflecting a move to a different environment or configuration.
This commit is contained in:
2026-08-03 09:52:13 +02:00
parent 8327c0fd0b
commit af3c8be133
2 changed files with 4 additions and 1 deletions

View File

@@ -27,6 +27,9 @@ namespace ECMJobRunner.Application
#else #else
services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(assembly)); services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(assembly));
#endif #endif
// Register AutoMapper with all profiles from this assembly
services.AddAutoMapper(assembly);
services.AddRecClient(recClientApiUrl, opt => services.AddRecClient(recClientApiUrl, opt =>
{ {
opt.LogSuccessfulRequests = true; opt.LogSuccessfulRequests = true;

View File

@@ -6,7 +6,7 @@
} }
}, },
"ConnectionStrings": { "ConnectionStrings": {
"SDD-VMP04-SQL17": "Server=SDD-VMP04-SQL17\\DD_DEVELOP01;Database=DD_ECM;User Id=sa;Password=dd;Encrypt=false;TrustServerCertificate=True;" "SDD-VMP04-SQL17": "Server=SDD-VHP04-SQL19\\DD_TESTING01;Database=DD_ECM;User Id=sa;Password=123456789dD!;Encrypt=false;TrustServerCertificate=True;"
}, },
"AllowedHosts": "*", "AllowedHosts": "*",
"HostingOptions": { "HostingOptions": {