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.
16 lines
465 B
C#
16 lines
465 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using MediatR;
|
|
|
|
namespace DbFirst.Application;
|
|
|
|
public static class DependencyInjection
|
|
{
|
|
public static IServiceCollection AddApplication(this IServiceCollection services)
|
|
{
|
|
services.AddAutoMapper(cfg => cfg.AddMaps(typeof(DependencyInjection).Assembly));
|
|
services.AddMediatR(cfg =>
|
|
cfg.RegisterServicesFromAssembly(typeof(DependencyInjection).Assembly));
|
|
return services;
|
|
}
|
|
}
|