Skip to content

Instantly share code, notes, and snippets.

@dariuszparzygnat
Created September 21, 2017 20:20
Show Gist options
  • Save dariuszparzygnat/2c47fe1db8ff9d5a3a7b2c8e0ccdbc9a to your computer and use it in GitHub Desktop.
Save dariuszparzygnat/2c47fe1db8ff9d5a3a7b2c8e0ccdbc9a to your computer and use it in GitHub Desktop.
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