{"issue":{"created_at":"2011-10-17T20:56:07Z","state":"open","updated_at":"2011-12-11T21:07:29Z","comments":1,"user":{"gravatar_id":"7ec76eaa9c5cfe84cc61dc93b1f85aeb","id":942415,"url":"https://api.github.com/users/cwoolum","avatar_url":"https://secure.gravatar.com/avatar/7ec76eaa9c5cfe84cc61dc93b1f85aeb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"cwoolum"},"body":"I have added the ForMember clause in my initial createMap call. After trying to map the object, my value on the other side is 0. It should be 6.\r\n\r\n\r\n    Mapper.CreateMap<Entities.Post, Models.Post>()\r\n                .ForMember(dest => dest.GroupId, opt => opt.MapFrom(src => src.Group.GroupId));\r\n\r\n    List<Entities.Post> groupPosts = _pce.Posts.Where(m => commonGroups.Contains(m.Group.GroupId)).ToList();\r\n    var groupPostsMapped = Mapper.Map<List<Entities.Post>, List<Models.Post>>(groupPosts);\r\n\r\nI have also tried this on a per-object basis instead of passing the lists and came up with the same result.","assignee":null,"id":1933331,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"number":135,"title":"ForMember not mapping correctly","html_url":"https://github.com/AutoMapper/AutoMapper/issues/135","closed_at":null,"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/135","milestone":null},"action":"created","comment":{"created_at":"2011-12-11T21:07:29Z","updated_at":"2011-12-11T21:07:29Z","user":{"gravatar_id":"cc359c5ccf90d7a24b5976316797b5ec","id":104498,"url":"https://api.github.com/users/jbogard","avatar_url":"https://secure.gravatar.com/avatar/cc359c5ccf90d7a24b5976316797b5ec?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jbogard"},"body":"Can you post the source/destination types too? Just the relevant parts is OK.","id":3099672,"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/3099672"}}