Created
September 21, 2017 20:20
-
-
Save dariuszparzygnat/2c47fe1db8ff9d5a3a7b2c8e0ccdbc9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AutomapperConfiguration.AutoMapperConfig.Profiles; | |
using AutoMapper; | |
namespace AutomapperConfiguration.AutoMapperConfig | |
{ | |
public class AutoMapperConfiguration : IAutoMapperConfiguration | |
{ | |
public MapperConfiguration Configure() | |
{ | |
var config = new MapperConfiguration(cfg => | |
{ | |
// HERE YOU CAN CONFIGURE YOUR MAPPINGS | |
cfg.AddProfile<CarProfile>(); | |
cfg.AddProfile<PersonProfile>(); | |
}); | |
return config; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment