I have a WCF service that uses generic data in a data contract, for example (simplified):
public GetDetails(StatusField<string> status);
WCF now supports generics, creating a nonequivalent equivalent type for every possible value of T in the generic. Thus, for the above example, the client consuming the WCF service will see the following signature for the above function:
public GetDetails(stringStatusField status);
The client now has a copy of the general version of the StatusField class. We want to use AutoMapper in the client to map this common StatusField to the types generated above WCF (like stringStatusField) so we can call the service. We could do this by manually creating maps at client startup, for example:
Mapper.CreateMap<StatusField<string>, stringStatusField>();
, 50 + , WCF. , , , .
, , , AutoMapper, . , AutoMapper , , , . , , , - , , .
, , Mapper.DynamicMap() . -, , , ( , ), , StatusField , WCF, im not sure . , .