Пример #1
0
        private void LoadCustomMappings()
        {
            LoadStandardMappings();
            var mapsFrom = ProfileAutoMapperHelper.LoadCustomMappings(Assembly.GetExecutingAssembly());

            foreach (var map in mapsFrom)
            {
                map.CreateMappings(this);
            }
        }
Пример #2
0
        private void LoadStandardMappings()
        {
            var mapsFrom = ProfileAutoMapperHelper.LoadStandardMappings(
                Assembly.GetExecutingAssembly());

            foreach (var map in mapsFrom)
            {
                CreateMap(map.Source, map.Destination).ReverseMap();
            }
        }