{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/979","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/979/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/979/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/979/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/979","id":115962972,"number":979,"title":"membersToExpand expression causes exception","user":{"login":"ebussa","id":7408667,"avatar_url":"https://avatars.githubusercontent.com/u/7408667?v=3","gravatar_id":"","url":"https://api.github.com/users/ebussa","html_url":"https://github.com/ebussa","followers_url":"https://api.github.com/users/ebussa/followers","following_url":"https://api.github.com/users/ebussa/following{/other_user}","gists_url":"https://api.github.com/users/ebussa/gists{/gist_id}","starred_url":"https://api.github.com/users/ebussa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebussa/subscriptions","organizations_url":"https://api.github.com/users/ebussa/orgs","repos_url":"https://api.github.com/users/ebussa/repos","events_url":"https://api.github.com/users/ebussa/events{/privacy}","received_events_url":"https://api.github.com/users/ebussa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-09T20:50:53Z","updated_at":"2015-11-25T21:56:32Z","closed_at":null,"body":"After ugprading to v4, the membersToExpand expression `accommodation => accommodation.Details.Select(detail => detail.Accommodation.Category)` causes the exception \"Expected a property/field access expression\"\r\n\r\nError message: \"Expected a property/field access expression, not accommodation => accommodation.Details.Select(detail => detail.Accommodation.Category) Parameter name: expression\"\r\n\r\nStackTrace: \" at AutoMapper.Internal.ReflectionHelper.GetFieldOrProperty(LambdaExpression expression) at System.Linq.Enumerable.WhereSelectArrayIterator'2.MoveNext() at System.Linq.Buffer'1..ctor(IEnumerable'1 source) at System.Linq.Enumerable.ToArray\\[TSource\\](IEnumerable'1 source) at AutoMapper.QueryableExtensions.ProjectionExpression.GetMembers\\[TResult\\](Expression'1\\[\\]membersToExpand) at AutoMapper.QueryableExtensions.ProjectionExpression.To\\[TResult\\](IDictionary'2 parameters, Expression'1\\[\\] membersToExpand) \""},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/159740522","html_url":"https://github.com/AutoMapper/AutoMapper/issues/979#issuecomment-159740522","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/979","id":159740522,"user":{"login":"shaneray","id":482797,"avatar_url":"https://avatars.githubusercontent.com/u/482797?v=3","gravatar_id":"","url":"https://api.github.com/users/shaneray","html_url":"https://github.com/shaneray","followers_url":"https://api.github.com/users/shaneray/followers","following_url":"https://api.github.com/users/shaneray/following{/other_user}","gists_url":"https://api.github.com/users/shaneray/gists{/gist_id}","starred_url":"https://api.github.com/users/shaneray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaneray/subscriptions","organizations_url":"https://api.github.com/users/shaneray/orgs","repos_url":"https://api.github.com/users/shaneray/repos","events_url":"https://api.github.com/users/shaneray/events{/privacy}","received_events_url":"https://api.github.com/users/shaneray/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T21:56:32Z","updated_at":"2015-11-25T21:56:32Z","body":"I also get an exception when trying to expand with strings \"Accommodation.Category\" if Category is a collection.  @lbargaoanu your pull request does not resolve that also does it?"}}