From 2ffa389978c259d507394e69a7970f46a433c02e Mon Sep 17 00:00:00 2001 From: OlgunR Date: Wed, 22 Apr 2026 09:35:50 +0200 Subject: [PATCH] Update AutoMapper to 16.1.1 and adjust registration Upgraded AutoMapper to version 16.1.1 across API, Application, and Infrastructure projects. Removed AutoMapper.Extensions.Microsoft.DependencyInjection where no longer needed. Updated AutoMapper registration in DependencyInjection.cs to use the new API. No other changes made. --- DbFirst.API/DbFirst.API.csproj | 3 +-- DbFirst.Application/DbFirst.Application.csproj | 3 +-- DbFirst.Application/DependencyInjection.cs | 2 +- DbFirst.Infrastructure/DbFirst.Infrastructure.csproj | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/DbFirst.API/DbFirst.API.csproj b/DbFirst.API/DbFirst.API.csproj index 82b0695..20cf89e 100644 --- a/DbFirst.API/DbFirst.API.csproj +++ b/DbFirst.API/DbFirst.API.csproj @@ -7,8 +7,7 @@ - - + diff --git a/DbFirst.Application/DbFirst.Application.csproj b/DbFirst.Application/DbFirst.Application.csproj index 2eabaad..c623505 100644 --- a/DbFirst.Application/DbFirst.Application.csproj +++ b/DbFirst.Application/DbFirst.Application.csproj @@ -7,8 +7,7 @@ - - + diff --git a/DbFirst.Application/DependencyInjection.cs b/DbFirst.Application/DependencyInjection.cs index 1256100..75b2fae 100644 --- a/DbFirst.Application/DependencyInjection.cs +++ b/DbFirst.Application/DependencyInjection.cs @@ -7,7 +7,7 @@ public static class DependencyInjection { public static IServiceCollection AddApplication(this IServiceCollection services) { - services.AddAutoMapper(typeof(DependencyInjection).Assembly); + services.AddAutoMapper(cfg => cfg.AddMaps(typeof(DependencyInjection).Assembly)); services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(typeof(DependencyInjection).Assembly)); return services; diff --git a/DbFirst.Infrastructure/DbFirst.Infrastructure.csproj b/DbFirst.Infrastructure/DbFirst.Infrastructure.csproj index 24f1fe7..8f624c1 100644 --- a/DbFirst.Infrastructure/DbFirst.Infrastructure.csproj +++ b/DbFirst.Infrastructure/DbFirst.Infrastructure.csproj @@ -7,7 +7,7 @@ - +