{"action":"created","issue":{"url":"https://api.github.com/repos/object/Simple.OData.Client/issues/256","repository_url":"https://api.github.com/repos/object/Simple.OData.Client","labels_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/256/comments","events_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/256/events","html_url":"https://github.com/object/Simple.OData.Client/issues/256","id":157846708,"number":256,"title":"Insert/Update not working with EF Many to Many using simple odata client How do I do it?","user":{"login":"ashuthinks","id":3287696,"avatar_url":"https://avatars.githubusercontent.com/u/3287696?v=3","gravatar_id":"","url":"https://api.github.com/users/ashuthinks","html_url":"https://github.com/ashuthinks","followers_url":"https://api.github.com/users/ashuthinks/followers","following_url":"https://api.github.com/users/ashuthinks/following{/other_user}","gists_url":"https://api.github.com/users/ashuthinks/gists{/gist_id}","starred_url":"https://api.github.com/users/ashuthinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashuthinks/subscriptions","organizations_url":"https://api.github.com/users/ashuthinks/orgs","repos_url":"https://api.github.com/users/ashuthinks/repos","events_url":"https://api.github.com/users/ashuthinks/events{/privacy}","received_events_url":"https://api.github.com/users/ashuthinks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-01T08:06:43Z","updated_at":"2016-06-10T06:55:44Z","closed_at":null,"body":"My context is \r\n\r\n\r\n![](http://i.stack.imgur.com/uocxR.png)\r\n\r\n\r\n\r\nIn above we have not added DbSet for `UserRole` if we add that it will work fine.\r\n\r\nUsing this model via Entity Framework code 1st, data table in database becomes =>\r\n\r\n1) User Table\r\n\r\n![](http://i.stack.imgur.com/Pk8rl.png)\r\n\r\n\r\n\r\n2) Role Table\r\n\r\n![](http://i.stack.imgur.com/Zs2Yc.png)\r\n\r\n\r\n\r\n\r\n3) UserRole Table - A new linked table created automatically\r\n\r\n![](http://i.stack.imgur.com/VBMbn.png)\r\n\r\n\r\nModel for User is =>\r\n\r\n\r\n![](http://i.stack.imgur.com/Xss6O.png)\r\n\r\n\r\n\r\nModel for Role is =>\r\n\r\n![](http://i.stack.imgur.com/Vl9xm.png)\r\n\r\n\r\n\r\nand my O Data query for inserting record for single User/Role table working properly\r\n\r\n![](http://i.stack.imgur.com/eNW5z.png)\r\n\r\n\r\nNow, what query should I write, when I want to Insert record to UserRole table\r\n\r\ncan someone have any idea"},"comment":{"url":"https://api.github.com/repos/object/Simple.OData.Client/issues/comments/225107401","html_url":"https://github.com/object/Simple.OData.Client/issues/256#issuecomment-225107401","issue_url":"https://api.github.com/repos/object/Simple.OData.Client/issues/256","id":225107401,"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-10T06:55:44Z","updated_at":"2016-06-10T06:55:44Z","body":"Hi and sorry for the late response.\r\n\r\nI will investigate this further but I am currently under a heavy load of other tasks, so if will help me a lot if you figure out what OData payload you expect to be generated. Don't think EF and SQL: OData has its own protocol which is not equivalent to SQL and LINQ so not everything can be supported by OData. So listing expected OData behavior is appreciated, it will save me some time to investigate it further."}}
{"actor":{"display_login":"object"}}