Пример #1
0
        private void ReadWithMap2(MyModel2 mm2, DtoTestViewModelExtra vm)
        {
            //DefineMappers2();

            //var mapper2 = (PropBagMapperCustom<MyModel2, DtoTestViewModelExtra>)_autoMappers.GetMapperToUse(_mapperKey2);
            //DtoTestViewModelExtra tt = (DtoTestViewModelExtra)mapper2.MapToDestination(mm2, vm);
        }
Пример #2
0
        private void ReadWithMap(MyModel mm, DtoTestViewModelExtra vm)
        {
            //var mapper = (PropBagMapperCustom<MyModel, DtoTestViewModelExtra>)_autoMappers.GetMapperToUse(_mapperKey);

            //DtoTestViewModelExtra tt = (DtoTestViewModelExtra)mapper.MapToDestination(mm, vm);

            //// Now try creating a new one from mm.
            //DtoTestViewModelExtra test = (DtoTestViewModelExtra)mapper.MapToDestination(mm);
        }