{"action":"created","issue":{"url":"https://api.github.com/repos/object/Simple.OData.Client/issues/309","repository_url":"https://api.github.com/repos/object/Simple.OData.Client","labels_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/309/comments","events_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/309/events","html_url":"https://github.com/object/Simple.OData.Client/issues/309","id":177681029,"number":309,"title":"Expand 3 Levels deep all One To One relationships","user":{"login":"jmfronsee","id":18412151,"avatar_url":"https://avatars.githubusercontent.com/u/18412151?v=3","gravatar_id":"","url":"https://api.github.com/users/jmfronsee","html_url":"https://github.com/jmfronsee","followers_url":"https://api.github.com/users/jmfronsee/followers","following_url":"https://api.github.com/users/jmfronsee/following{/other_user}","gists_url":"https://api.github.com/users/jmfronsee/gists{/gist_id}","starred_url":"https://api.github.com/users/jmfronsee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmfronsee/subscriptions","organizations_url":"https://api.github.com/users/jmfronsee/orgs","repos_url":"https://api.github.com/users/jmfronsee/repos","events_url":"https://api.github.com/users/jmfronsee/events{/privacy}","received_events_url":"https://api.github.com/users/jmfronsee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/object/Simple.OData.Client/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-18T22:15:38Z","updated_at":"2016-09-20T08:48:28Z","closed_at":null,"body":"Lets say I have this data setup:   A Computer has 1 Store.  A Store has 1 Group.  A Group can have 1 Corporation.\r\nCorp\r\n     Group\r\n          Store\r\n                 Computer.\r\n\r\nIt looks like I can Expand MOST of these levels in one Expand call (all the way up to Groups), like:\r\n\r\nvar saList = await client\r\n           .For<computer>()\r\n           .Expand(x => x.store.groups)\r\n           .FindEntriesAsync();\r\n\r\n- BUT if I add in the last level (corporation) in the Expand, like this below, it fails / Not Found:\r\n.Expand(x => x.store.groups.corporation)\r\n\r\nHow do I go about expanding all the way up to Corporation on a Computer like this?  \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/object/Simple.OData.Client/issues/comments/248241879","html_url":"https://github.com/object/Simple.OData.Client/issues/309#issuecomment-248241879","issue_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/309","id":248241879,"user":{"login":"jmfronsee","id":18412151,"avatar_url":"https://avatars.githubusercontent.com/u/18412151?v=3","gravatar_id":"","url":"https://api.github.com/users/jmfronsee","html_url":"https://github.com/jmfronsee","followers_url":"https://api.github.com/users/jmfronsee/followers","following_url":"https://api.github.com/users/jmfronsee/following{/other_user}","gists_url":"https://api.github.com/users/jmfronsee/gists{/gist_id}","starred_url":"https://api.github.com/users/jmfronsee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmfronsee/subscriptions","organizations_url":"https://api.github.com/users/jmfronsee/orgs","repos_url":"https://api.github.com/users/jmfronsee/repos","events_url":"https://api.github.com/users/jmfronsee/events{/privacy}","received_events_url":"https://api.github.com/users/jmfronsee/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T08:48:28Z","updated_at":"2016-09-20T08:48:28Z","body":"That is what im after, but when I add the .dealer part to the end I get a \"Bad Request\" error...  it only lets me go as far as restaurant_group .Joe Fronsee\n\n\n-------- Original Message --------\nSubject: Re: [object/Simple.OData.Client] Expand 3 Levels deep all One\nTo One relationships (#309)\nFrom: Vagif Abilov <notifications@github.com>\nDate: Tue, September 20, 2016 1:31 am\nTo: \"object/Simple.OData.Client\"\n<Simple.OData.Client@noreply.github.com>\nCc: jmfronsee <joe@fronseetechnology.com>,  Author\n<author@noreply.github.com>\n\nI first wrote an example with fewer levels but then updated it to reflect what you mean. Note how the recent version looks: client.For().Expand(x => x.restaurant.restaurant_groups.dealer); Isn't this what you are after? —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread."}}
{"actor":{"display_login":"jmfronsee"}}