Esempio n. 1
0
        private void LoadCustomMappings()
        {
            IList <IHaveCustomMapping> mapsFrom = MapperProfileHelper.LoadCustomMappings(typeof(PaymentViewModel).Assembly);

            foreach (IHaveCustomMapping map in mapsFrom)
            {
                map.CreateMappings(this);
            }
        }
Esempio n. 2
0
        private void LoadStandardMappings()
        {
            IList <Map> mapsFrom = MapperProfileHelper.LoadStandardMappings(typeof(PaymentViewModel).Assembly);

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