Skip to content
Isaac Abraham edited this page Jan 26, 2016 · 6 revisions

Default behaviours allow you to change fundamental behaviours of the Unity Automapper as well as enable certain global features. Changing these behaviours is as simple as passing in an instance of the MappingOptions class with the required behaviours set as flags e.g.

var options = new MappingOptions(MappingBehaviors.MultimapByDefault);
container.AutomapAssemblies(options, "MyAssembly"); 

The available behaviours are shown below: -