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
|
#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;
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user