I am using AutoMapper to map DTOs to entities. Also, my WCF services are being consumed by SAP.

The issue is that SAP sends me empty strings instead of nulls (that is, "" instead of null).

So I basically need to go through every field of the DTO I am receiving, and replace empty strings by nulls. Is there an easy way to accomplish this with AutoMapper?

Edit
Report