¡@

Home 

c# Programming Glossary: entity.sub

How do you map a Dto to an existing object instance with nested objects using AutoMapper?

http://stackoverflow.com/questions/3672447/how-do-you-map-a-dto-to-an-existing-object-instance-with-nested-objects-using-au

Initialize Mapper.CreateMap Dto Entity .ForMember entity entity.Sub memberOptions memberOptions.MapFrom dto dto Mapper.CreateMap.. Initialize Mapper.CreateMap Dto Entity .ForMember entity entity.Sub memberOptions memberOptions.ResolveUsing MyResolver Mapper.CreateMap.. entity Console.WriteLine string.Format entity.Property 0 entity.Sub.SubProperty 1 entity.Property entity.Sub.SubProperty Console.WriteLine..