{"action":"created","issue":{"url":"https://api.github.com/repos/object/Simple.OData.Client/issues/264","repository_url":"https://api.github.com/repos/object/Simple.OData.Client","labels_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/264/comments","events_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/264/events","html_url":"https://github.com/object/Simple.OData.Client/issues/264","id":160918767,"number":264,"title":"Filtering using Lambda expressions not adding grouping parenthesis","user":{"login":"roly445","id":9212070,"avatar_url":"https://avatars.githubusercontent.com/u/9212070?v=3","gravatar_id":"","url":"https://api.github.com/users/roly445","html_url":"https://github.com/roly445","followers_url":"https://api.github.com/users/roly445/followers","following_url":"https://api.github.com/users/roly445/following{/other_user}","gists_url":"https://api.github.com/users/roly445/gists{/gist_id}","starred_url":"https://api.github.com/users/roly445/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roly445/subscriptions","organizations_url":"https://api.github.com/users/roly445/orgs","repos_url":"https://api.github.com/users/roly445/repos","events_url":"https://api.github.com/users/roly445/events{/privacy}","received_events_url":"https://api.github.com/users/roly445/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-17T15:48:44Z","updated_at":"2016-06-17T16:58:11Z","closed_at":null,"body":"I have create a query using a lambda expression like this one\r\n`query.Filter((x => x.WhenFrom >= from && x.WhenFrom <= to) || r(x => x.WhenTo >= from && x.WhenTo <= to))\r\n`\r\nwhen I use the `GetCommandTextAsync` method, I get the following (I have decoded the url)\r\n`$filter=WhenFrom ge datetime'2016-06-10T00:00:00' and WhenFrom le datetime'2016-06-17T00:00:00' or WhenTo ge datetime'2016-06-10T00:00:00' and WhenTo le datetime'2016-06-17T00:00:00'`\r\n\r\nIs this the right way of grouping multiple or statements or is there another?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/object/Simple.OData.Client/issues/comments/226823583","html_url":"https://github.com/object/Simple.OData.Client/issues/264#issuecomment-226823583","issue_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/264","id":226823583,"user":{"login":"object","id":252126,"avatar_url":"https://avatars.githubusercontent.com/u/252126?v=3","gravatar_id":"","url":"https://api.github.com/users/object","html_url":"https://github.com/object","followers_url":"https://api.github.com/users/object/followers","following_url":"https://api.github.com/users/object/following{/other_user}","gists_url":"https://api.github.com/users/object/gists{/gist_id}","starred_url":"https://api.github.com/users/object/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/object/subscriptions","organizations_url":"https://api.github.com/users/object/orgs","repos_url":"https://api.github.com/users/object/repos","events_url":"https://api.github.com/users/object/events{/privacy}","received_events_url":"https://api.github.com/users/object/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T16:58:10Z","updated_at":"2016-06-17T16:58:10Z","body":"But why should it add parenthesis? AND has higher precedence than OR, so parenthesis should not be necessary."}}
{"actor":{"display_login":"object"}}