mapper injection C# code example
Example 1: automapper dependency injection
services.AddAutoMapper(typeof(ProfileTypeFromAssembly1), typeof(ProfileTypeFromAssembly2) /*, ...*/);
Example 2: automapper dependency injection
services.AddAutoMapper(profileAssembly1, profileAssembly2 /*, ...*/);