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:
@@ -27,6 +27,9 @@ namespace ECMJobRunner.Application
|
||||
#else
|
||||
services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(assembly));
|
||||
#endif
|
||||
|
||||
// Register AutoMapper with all profiles from this assembly
|
||||
services.AddAutoMapper(assembly);
|
||||
services.AddRecClient(recClientApiUrl, opt =>
|
||||
{
|
||||
opt.LogSuccessfulRequests = true;
|
||||
|
||||
Reference in New Issue
Block a user