public DictionarySettings(MapperContext mapperContext) { _joiningNameFactories = new List <JoiningNameFactory> { JoiningNameFactory.UnderscoredForSourceDynamics(mapperContext), JoiningNameFactory.UnderscoredForTargetDynamics(mapperContext), JoiningNameFactory.Dotted(mapperContext) }; _elementKeyPartFactories = new List <ElementKeyPartFactory> { ElementKeyPartFactory.UnderscoredIndexForSourceDynamics(mapperContext), ElementKeyPartFactory.UnderscoredIndexForTargetDynamics(mapperContext), ElementKeyPartFactory.SquareBracketedIndex(mapperContext) }; }
public void Add(JoiningNameFactory joiningNameFactory) { ThrowIfConflictingKeyPartFactoryExists(joiningNameFactory, _joiningNameFactories); _joiningNameFactories.Insert(0, joiningNameFactory); }