{"action":"opened","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1702","repository_url":"https://api.github.com/repos/AutoMapper/AutoMapper","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1702/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1702/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1702/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/1702","id":179371494,"number":1702,"title":"Condition causing AutoMapper to miss string properties","user":{"login":"YumsTheGreat","id":19209643,"avatar_url":"https://avatars.githubusercontent.com/u/19209643?v=3","gravatar_id":"","url":"https://api.github.com/users/YumsTheGreat","html_url":"https://github.com/YumsTheGreat","followers_url":"https://api.github.com/users/YumsTheGreat/followers","following_url":"https://api.github.com/users/YumsTheGreat/following{/other_user}","gists_url":"https://api.github.com/users/YumsTheGreat/gists{/gist_id}","starred_url":"https://api.github.com/users/YumsTheGreat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YumsTheGreat/subscriptions","organizations_url":"https://api.github.com/users/YumsTheGreat/orgs","repos_url":"https://api.github.com/users/YumsTheGreat/repos","events_url":"https://api.github.com/users/YumsTheGreat/events{/privacy}","received_events_url":"https://api.github.com/users/YumsTheGreat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-27T00:39:40Z","updated_at":"2016-09-27T00:39:40Z","closed_at":null,"body":"I'm experiencing an issue using the following condition \r\n\r\n```csharp\r\ncfg.CreateMap<ScriptDto, Script>()\r\n   .ForMember(y => y.Id, opt => opt.Ignore())\r\n   .ForAllOtherMembers(opt =>\r\n   {\r\n      opt.Condition((src, dest, srcValue) =>\r\n      {\r\n         if (srcValue != null && srcValue is DateTime)\r\n         {\r\n            if ((DateTime)srcValue <= new DateTime())\r\n            {\r\n               return false;\r\n             }\r\n             return true;\r\n          }\r\n          return srcValue != null;\r\n       });\r\n   });\r\n\r\n```\r\n\r\nBasically if I use a condition like this my string properties are no longer mapped to one another even though they are named the same. With the condition commented out my data mapped fine.\r\n\r\nI'm using version 5.1.1 in net core."}}
{"actor":{"display_login":"YumsTheGreat"}}