{"action":"closed","issue":{"url":"https://api.github.com/repos/expressmapper/ExpressMapper/issues/47","labels_url":"https://api.github.com/repos/expressmapper/ExpressMapper/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/expressmapper/ExpressMapper/issues/47/comments","events_url":"https://api.github.com/repos/expressmapper/ExpressMapper/issues/47/events","html_url":"https://github.com/expressmapper/ExpressMapper/issues/47","id":114052944,"number":47,"title":"How to map to destination of array?","user":{"login":"damiangreen","id":1592820,"avatar_url":"https://avatars.githubusercontent.com/u/1592820?v=3","gravatar_id":"","url":"https://api.github.com/users/damiangreen","html_url":"https://github.com/damiangreen","followers_url":"https://api.github.com/users/damiangreen/followers","following_url":"https://api.github.com/users/damiangreen/following{/other_user}","gists_url":"https://api.github.com/users/damiangreen/gists{/gist_id}","starred_url":"https://api.github.com/users/damiangreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damiangreen/subscriptions","organizations_url":"https://api.github.com/users/damiangreen/orgs","repos_url":"https://api.github.com/users/damiangreen/repos","events_url":"https://api.github.com/users/damiangreen/events{/privacy}","received_events_url":"https://api.github.com/users/damiangreen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/expressmapper/ExpressMapper/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"anisimovyuriy","id":3758138,"avatar_url":"https://avatars.githubusercontent.com/u/3758138?v=3","gravatar_id":"","url":"https://api.github.com/users/anisimovyuriy","html_url":"https://github.com/anisimovyuriy","followers_url":"https://api.github.com/users/anisimovyuriy/followers","following_url":"https://api.github.com/users/anisimovyuriy/following{/other_user}","gists_url":"https://api.github.com/users/anisimovyuriy/gists{/gist_id}","starred_url":"https://api.github.com/users/anisimovyuriy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anisimovyuriy/subscriptions","organizations_url":"https://api.github.com/users/anisimovyuriy/orgs","repos_url":"https://api.github.com/users/anisimovyuriy/repos","events_url":"https://api.github.com/users/anisimovyuriy/events{/privacy}","received_events_url":"https://api.github.com/users/anisimovyuriy/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-10-29T13:48:27Z","updated_at":"2015-11-01T20:43:41Z","closed_at":"2015-11-01T20:43:41Z","body":"Consider this code.\r\n\r\n    Mapper.Register<Type1ReportPermissions[], Permission[]>()\r\n                .Member(dst => dst, src => src.GroupBy(p => p.ClientId)\r\n                    .Select(g => new Permission\r\n                    {\r\n                        ClientId = g.Key,\r\n                        RoleIds = g.Select(r => r.RoleId)\r\n                            .ToArray()\r\n                    }).ToArray());\r\n\r\nOn Compile, the error is thrown\r\n\r\n    \"MemberExpression should return one of the properties of destination class\"\r\n\r\nHow does one go about mapping from a collection of one type to a collection of another?"}}