{"action":"created","issue":{"url":"https://api.github.com/repos/nhibernate/nhibernate-core/issues/441","labels_url":"https://api.github.com/repos/nhibernate/nhibernate-core/issues/441/labels{/name}","comments_url":"https://api.github.com/repos/nhibernate/nhibernate-core/issues/441/comments","events_url":"https://api.github.com/repos/nhibernate/nhibernate-core/issues/441/events","html_url":"https://github.com/nhibernate/nhibernate-core/pull/441","id":97470777,"number":441,"title":"Fix for NH-3795","user":{"login":"gerritsen","id":1834043,"avatar_url":"https://avatars.githubusercontent.com/u/1834043?v=3","gravatar_id":"","url":"https://api.github.com/users/gerritsen","html_url":"https://github.com/gerritsen","followers_url":"https://api.github.com/users/gerritsen/followers","following_url":"https://api.github.com/users/gerritsen/following{/other_user}","gists_url":"https://api.github.com/users/gerritsen/gists{/gist_id}","starred_url":"https://api.github.com/users/gerritsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerritsen/subscriptions","organizations_url":"https://api.github.com/users/gerritsen/orgs","repos_url":"https://api.github.com/users/gerritsen/repos","events_url":"https://api.github.com/users/gerritsen/events{/privacy}","received_events_url":"https://api.github.com/users/gerritsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-27T14:03:22Z","updated_at":"2015-07-29T10:10:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nhibernate/nhibernate-core/pulls/441","html_url":"https://github.com/nhibernate/nhibernate-core/pull/441","diff_url":"https://github.com/nhibernate/nhibernate-core/pull/441.diff","patch_url":"https://github.com/nhibernate/nhibernate-core/pull/441.patch"},"body":"Compiling query over queries with the Roslyn compiler of Visual Studio breaks resolving alias names because Roslyn compiles lambda's differently. It now sometimes generates a compiler generated class. This compiler generated class has a member of the type of the class declaring the alias. The ExpressionProcessor is recursively searching for members and does not stop at the alias field but also returns the member of the compiler generated class. Members of compiler generated classes can never be used in a query over so they should never be returned "},"comment":{"url":"https://api.github.com/repos/nhibernate/nhibernate-core/issues/comments/125906830","html_url":"https://github.com/nhibernate/nhibernate-core/pull/441#issuecomment-125906830","issue_url":"https://api.github.com/repos/nhibernate/nhibernate-core/issues/441","id":125906830,"user":{"login":"hazzik","id":144791,"avatar_url":"https://avatars.githubusercontent.com/u/144791?v=3","gravatar_id":"","url":"https://api.github.com/users/hazzik","html_url":"https://github.com/hazzik","followers_url":"https://api.github.com/users/hazzik/followers","following_url":"https://api.github.com/users/hazzik/following{/other_user}","gists_url":"https://api.github.com/users/hazzik/gists{/gist_id}","starred_url":"https://api.github.com/users/hazzik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hazzik/subscriptions","organizations_url":"https://api.github.com/users/hazzik/orgs","repos_url":"https://api.github.com/users/hazzik/repos","events_url":"https://api.github.com/users/hazzik/events{/privacy}","received_events_url":"https://api.github.com/users/hazzik/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T10:10:07Z","updated_at":"2015-07-29T10:10:07Z","body":"I have an discussion of the similar issue on [DelegateDecompiler](https://github.com/hazzik/DelegateDecompiler/issues/54) and it has a link to [this SO answer](http://stackoverflow.com/a/2509524/259946) which describes how the compiler generates names for such members "}}