{"action":"created","issue":{"url":"https://api.github.com/repos/TrackableEntities/trackable-entities/issues/131","repository_url":"https://api.github.com/repos/TrackableEntities/trackable-entities","labels_url":"https://api.github.com/repos/TrackableEntities/trackable-entities/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/TrackableEntities/trackable-entities/issues/131/comments","events_url":"https://api.github.com/repos/TrackableEntities/trackable-entities/issues/131/events","html_url":"https://github.com/TrackableEntities/trackable-entities/issues/131","id":157408144,"number":131,"title":"add/delete many-to-many Problem","user":{"login":"MarcDrexler","id":16029585,"avatar_url":"https://avatars.githubusercontent.com/u/16029585?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcDrexler","html_url":"https://github.com/MarcDrexler","followers_url":"https://api.github.com/users/MarcDrexler/followers","following_url":"https://api.github.com/users/MarcDrexler/following{/other_user}","gists_url":"https://api.github.com/users/MarcDrexler/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcDrexler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcDrexler/subscriptions","organizations_url":"https://api.github.com/users/MarcDrexler/orgs","repos_url":"https://api.github.com/users/MarcDrexler/repos","events_url":"https://api.github.com/users/MarcDrexler/events{/privacy}","received_events_url":"https://api.github.com/users/MarcDrexler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TrackableEntities/trackable-entities/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-05-29T21:50:32Z","updated_at":"2016-08-07T13:53:34Z","closed_at":null,"body":"Hello Tony,\r\n\r\nI don't know if I am doing something wrong or if there is a problem with the M-M relationship.\r\nI tested M-M relationships between employee and territory.\r\n\r\nI wanted to remove a single territory from the Territories Collection. But if I do that, the TrackingState of employee is also set to Deleted. This will cause the context to delete my employee, which I dont want :-)\r\n\r\n```\r\nvar employee = employeeService.GetEmployeeAsync(1).Result;\r\nvar changeTracker = new ChangeTrackingCollection<Employee>(employee);\r\nemployee.Territories.Remove(employee.Territories.First());\r\n```\r\n\r\n\r\n\r\nI have the same problem when I add a territory to the Territories Collection. The TrackingState of employee is then set to Added.\r\n\r\nI only want to add or remove a territory, but I cannot figure out how to do that."},"comment":{"url":"https://api.github.com/repos/TrackableEntities/trackable-entities/issues/comments/238083651","html_url":"https://github.com/TrackableEntities/trackable-entities/issues/131#issuecomment-238083651","issue_url":"https://api.github.com/repos/TrackableEntities/trackable-entities/issues/131","id":238083651,"user":{"login":"tonysneed","id":2836367,"avatar_url":"https://avatars.githubusercontent.com/u/2836367?v=3","gravatar_id":"","url":"https://api.github.com/users/tonysneed","html_url":"https://github.com/tonysneed","followers_url":"https://api.github.com/users/tonysneed/followers","following_url":"https://api.github.com/users/tonysneed/following{/other_user}","gists_url":"https://api.github.com/users/tonysneed/gists{/gist_id}","starred_url":"https://api.github.com/users/tonysneed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonysneed/subscriptions","organizations_url":"https://api.github.com/users/tonysneed/orgs","repos_url":"https://api.github.com/users/tonysneed/repos","events_url":"https://api.github.com/users/tonysneed/events{/privacy}","received_events_url":"https://api.github.com/users/tonysneed/received_events","type":"User","site_admin":false},"created_at":"2016-08-07T13:53:34Z","updated_at":"2016-08-07T13:53:34Z","body":"Thanks! Appreciate the reminder also, which helps nudge the issue to the top of my queue. :)"}}
{"actor":{"display_login":"tonysneed"}}