c# Programming Glossary: resolveusing
Convert byte array to short array in C# http://stackoverflow.com/questions/1104599/convert-byte-array-to-short-array-in-c-sharp
Using the instance version of CreateMap and Map with a WCF service? http://stackoverflow.com/questions/1668962/using-the-instance-version-of-createmap-and-map-with-a-wcf-service implement it. basically I am using a custom mapping with ResolveUsing and ConstructedBy to pass in params to the constructor I understand.. a wcf passes in different params to the constructor of a ResolveUsing ...... Before I was using the Mapper.CreateMap and Mapper.Map.. .TaxPercentage .ForMember dest dest.SalesPoints opt opt.ResolveUsing newSalesPointResolver FOUND OUT WHERE IS FAILING BUT UNKNOWN..
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 this question I solved it by using a combination of the ResolveUsing T method and implementing IValueResolver and the ConvertUsing.. .ForMember entity entity.Sub memberOptions memberOptions.ResolveUsing MyResolver Mapper.CreateMap Dto SubEntity class Program static.. subEntity True The key difference in MapperConfig2 is that ResolveUsing is used along with MyResolver to preserve the value of entity.Sub..
|