Exemplo n.º 1
0
        public MyProfile2()
        {
            SourceMemberNamingConvention      = new PascalCaseNamingConvention();
            DestinationMemberNamingConvention = new UpperUnderscoreNamingConvention();


            CreateMap <AssetNpaLandDetailDto, ASSET>()
            .ForPath(dest => dest.NPA.LAND.ADDRESS, mo => mo.MapFrom(src => src.NPALandAddress));
        }
Exemplo n.º 2
0
        public MyProfile()
        {
            SourceMemberNamingConvention      = new UpperUnderscoreNamingConvention();
            DestinationMemberNamingConvention = new PascalCaseNamingConvention();


            CreateMap <ASSET, AssetNpaLandDetailDto>();
            //.ForMember(dest => dest.NPALandAddress, mo => mo.MapFrom(src => src.NPA.LAND.ADDRESS))
            //.ReverseMap();
        }