Created
November 27, 2016 23:11
-
-
Save andriybuday/e06415f27d64ea55840fb2a313957c85 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
// 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