You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because the profile is assigned too late - you need to call CreateMap after CreateProfile to make sure that the prefixes checked appropriately. After RecognizeDestinationPrefixes, call CreateMap.
I'm not the orginal author of http://stackoverflow.com/questions/19240718/automapper-profiles-not-working , but I'm using his words since I just stumbled upon the same missbehaviour:
Does anyone know why this works:
But this doesn't:
The text was updated successfully, but these errors were encountered: