Skip to content

Instantly share code, notes, and snippets.

@andriybuday
Created November 27, 2016 23:11
Show Gist options
  • Save andriybuday/e06415f27d64ea55840fb2a313957c85 to your computer and use it in GitHub Desktop.
Save andriybuday/e06415f27d64ea55840fb2a313957c85 to your computer and use it in GitHub Desktop.
// AutoMapper will scan the assemblies passed in for Profile instances and add each to the configuration
Mapper.Initialize(config =>
config.AddProfiles(new[]
{
// Marker types for assemblies
// Only one type from assembly
typeof (BusinessMappingProfile),
typeof (ClassFromSomeOtherAssemblyWithMappings)
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment