I found this solution AutoMapper – setting destination string to null actually makes it string.Empty
but It uses the Initialize method so all the mappings behavior would change along the app : O
And I just need do it for a specific mapping.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Found a solution:
Thanks guys : )
Take care of your destination field types (remember you need nullable types. e.g. ‘Byte?’ )