コード例 #1
0
        private void LoadCustomMappings()
        {
            var mapsFrom = AutoMapperProfileHelper.LoadCustomMappings(Assembly.GetExecutingAssembly());

            foreach (var map in mapsFrom)
            {
                map.CreateMappings(this);
            }
        }
コード例 #2
0
        private void LoadStandardMappings()
        {
            var mapsFrom = AutoMapperProfileHelper.LoadStandardMappings(Assembly.GetExecutingAssembly());

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