{"action":"created","comment":{"url":"https://api.github.com/repos/OData/RESTier/pulls/comments/64996909","id":64996909,"diff_hunk":"@@ -108,9 +108,19 @@ private ApiBase Api\n                 throw new NotImplementedException(Resources.InsertOnlySupportedOnEntitySet);\n             }\n \n+            // In case of type inherience, the actual type will be different from entity type\n+            var entityType = path.EdmType;\n+            var actualEntityType = path.EdmType;\n+            if (edmEntityObject.ActualEdmType != null)\n+            {\n+                entityType = edmEntityObject.ExpectedEdmType;","path":"src/Microsoft.Restier.Publishers.OData/RestierController.cs","position":9,"original_position":9,"commit_id":"0a61ee4ba4d926d18686920f0db654f1f606a0a2","original_commit_id":"0a61ee4ba4d926d18686920f0db654f1f606a0a2","user":{"login":"lewischeng-ms","id":1402336,"avatar_url":"https://avatars.githubusercontent.com/u/1402336?v=3","gravatar_id":"","url":"https://api.github.com/users/lewischeng-ms","html_url":"https://github.com/lewischeng-ms","followers_url":"https://api.github.com/users/lewischeng-ms/followers","following_url":"https://api.github.com/users/lewischeng-ms/following{/other_user}","gists_url":"https://api.github.com/users/lewischeng-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/lewischeng-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewischeng-ms/subscriptions","organizations_url":"https://api.github.com/users/lewischeng-ms/orgs","repos_url":"https://api.github.com/users/lewischeng-ms/repos","events_url":"https://api.github.com/users/lewischeng-ms/events{/privacy}","received_events_url":"https://api.github.com/users/lewischeng-ms/received_events","type":"User","site_admin":false},"body":"also \"expected\" here","created_at":"2016-05-29T02:37:35Z","updated_at":"2016-05-29T02:37:35Z","html_url":"https://github.com/OData/RESTier/pull/412#discussion_r64996909","pull_request_url":"https://api.github.com/repos/OData/RESTier/pulls/412","_links":{"self":{"href":"https://api.github.com/repos/OData/RESTier/pulls/comments/64996909"},"html":{"href":"https://github.com/OData/RESTier/pull/412#discussion_r64996909"},"pull_request":{"href":"https://api.github.com/repos/OData/RESTier/pulls/412"}}},"pull_request":{"url":"https://api.github.com/repos/OData/RESTier/pulls/412","id":71676342,"html_url":"https://github.com/OData/RESTier/pull/412","diff_url":"https://github.com/OData/RESTier/pull/412.diff","patch_url":"https://github.com/OData/RESTier/pull/412.patch","issue_url":"https://api.github.com/repos/OData/RESTier/issues/412","number":412,"state":"open","locked":false,"title":"Derivedtype support part 3","user":{"login":"chinadragon0515","id":12759740,"avatar_url":"https://avatars.githubusercontent.com/u/12759740?v=3","gravatar_id":"","url":"https://api.github.com/users/chinadragon0515","html_url":"https://github.com/chinadragon0515","followers_url":"https://api.github.com/users/chinadragon0515/followers","following_url":"https://api.github.com/users/chinadragon0515/following{/other_user}","gists_url":"https://api.github.com/users/chinadragon0515/gists{/gist_id}","starred_url":"https://api.github.com/users/chinadragon0515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinadragon0515/subscriptions","organizations_url":"https://api.github.com/users/chinadragon0515/orgs","repos_url":"https://api.github.com/users/chinadragon0515/repos","events_url":"https://api.github.com/users/chinadragon0515/events{/privacy}","received_events_url":"https://api.github.com/users/chinadragon0515/received_events","type":"User","site_admin":false},"body":"Issues\r\n\r\nThis pull request fixes part of issue #117\r\n\r\nDescription\r\n\r\nAdd support of derived type patch/update/delete","created_at":"2016-05-27T08:19:12Z","updated_at":"2016-05-29T02:37:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be3f37e81f25bf61e0ec12dc6e05df8fb28fa801","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OData/RESTier/pulls/412/commits","review_comments_url":"https://api.github.com/repos/OData/RESTier/pulls/412/comments","review_comment_url":"https://api.github.com/repos/OData/RESTier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OData/RESTier/issues/412/comments","statuses_url":"https://api.github.com/repos/OData/RESTier/statuses/0a61ee4ba4d926d18686920f0db654f1f606a0a2","head":{"label":"chinadragon0515:derivedtype2","ref":"derivedtype2","sha":"0a61ee4ba4d926d18686920f0db654f1f606a0a2","user":{"login":"chinadragon0515","id":12759740,"avatar_url":"https://avatars.githubusercontent.com/u/12759740?v=3","gravatar_id":"","url":"https://api.github.com/users/chinadragon0515","html_url":"https://github.com/chinadragon0515","followers_url":"https://api.github.com/users/chinadragon0515/followers","following_url":"https://api.github.com/users/chinadragon0515/following{/other_user}","gists_url":"https://api.github.com/users/chinadragon0515/gists{/gist_id}","starred_url":"https://api.github.com/users/chinadragon0515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinadragon0515/subscriptions","organizations_url":"https://api.github.com/users/chinadragon0515/orgs","repos_url":"https://api.github.com/users/chinadragon0515/repos","events_url":"https://api.github.com/users/chinadragon0515/events{/privacy}","received_events_url":"https://api.github.com/users/chinadragon0515/received_events","type":"User","site_admin":false},"repo":{"id":50553804,"name":"RESTier","full_name":"chinadragon0515/RESTier","owner":{"login":"chinadragon0515","id":12759740,"avatar_url":"https://avatars.githubusercontent.com/u/12759740?v=3","gravatar_id":"","url":"https://api.github.com/users/chinadragon0515","html_url":"https://github.com/chinadragon0515","followers_url":"https://api.github.com/users/chinadragon0515/followers","following_url":"https://api.github.com/users/chinadragon0515/following{/other_user}","gists_url":"https://api.github.com/users/chinadragon0515/gists{/gist_id}","starred_url":"https://api.github.com/users/chinadragon0515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinadragon0515/subscriptions","organizations_url":"https://api.github.com/users/chinadragon0515/orgs","repos_url":"https://api.github.com/users/chinadragon0515/repos","events_url":"https://api.github.com/users/chinadragon0515/events{/privacy}","received_events_url":"https://api.github.com/users/chinadragon0515/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chinadragon0515/RESTier","description":"A turn-key library for building RESTful services","fork":true,"url":"https://api.github.com/repos/chinadragon0515/RESTier","forks_url":"https://api.github.com/repos/chinadragon0515/RESTier/forks","keys_url":"https://api.github.com/repos/chinadragon0515/RESTier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chinadragon0515/RESTier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chinadragon0515/RESTier/teams","hooks_url":"https://api.github.com/repos/chinadragon0515/RESTier/hooks","issue_events_url":"https://api.github.com/repos/chinadragon0515/RESTier/issues/events{/number}","events_url":"https://api.github.com/repos/chinadragon0515/RESTier/events","assignees_url":"https://api.github.com/repos/chinadragon0515/RESTier/assignees{/user}","branches_url":"https://api.github.com/repos/chinadragon0515/RESTier/branches{/branch}","tags_url":"https://api.github.com/repos/chinadragon0515/RESTier/tags","blobs_url":"https://api.github.com/repos/chinadragon0515/RESTier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chinadragon0515/RESTier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chinadragon0515/RESTier/git/refs{/sha}","trees_url":"https://api.github.com/repos/chinadragon0515/RESTier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chinadragon0515/RESTier/statuses/{sha}","languages_url":"https://api.github.com/repos/chinadragon0515/RESTier/languages","stargazers_url":"https://api.github.com/repos/chinadragon0515/RESTier/stargazers","contributors_url":"https://api.github.com/repos/chinadragon0515/RESTier/contributors","subscribers_url":"https://api.github.com/repos/chinadragon0515/RESTier/subscribers","subscription_url":"https://api.github.com/repos/chinadragon0515/RESTier/subscription","commits_url":"https://api.github.com/repos/chinadragon0515/RESTier/commits{/sha}","git_commits_url":"https://api.github.com/repos/chinadragon0515/RESTier/git/commits{/sha}","comments_url":"https://api.github.com/repos/chinadragon0515/RESTier/comments{/number}","issue_comment_url":"https://api.github.com/repos/chinadragon0515/RESTier/issues/comments{/number}","contents_url":"https://api.github.com/repos/chinadragon0515/RESTier/contents/{+path}","compare_url":"https://api.github.com/repos/chinadragon0515/RESTier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chinadragon0515/RESTier/merges","archive_url":"https://api.github.com/repos/chinadragon0515/RESTier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chinadragon0515/RESTier/downloads","issues_url":"https://api.github.com/repos/chinadragon0515/RESTier/issues{/number}","pulls_url":"https://api.github.com/repos/chinadragon0515/RESTier/pulls{/number}","milestones_url":"https://api.github.com/repos/chinadragon0515/RESTier/milestones{/number}","notifications_url":"https://api.github.com/repos/chinadragon0515/RESTier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chinadragon0515/RESTier/labels{/name}","releases_url":"https://api.github.com/repos/chinadragon0515/RESTier/releases{/id}","deployments_url":"https://api.github.com/repos/chinadragon0515/RESTier/deployments","created_at":"2016-01-28T04:00:25Z","updated_at":"2016-01-28T04:00:26Z","pushed_at":"2016-05-27T08:22:18Z","git_url":"git://github.com/chinadragon0515/RESTier.git","ssh_url":"git@github.com:chinadragon0515/RESTier.git","clone_url":"https://github.com/chinadragon0515/RESTier.git","svn_url":"https://github.com/chinadragon0515/RESTier","homepage":"http://odata.github.io/RESTier","size":6091,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OData:master","ref":"master","sha":"c69ac00d35a9b70b0f70f189b299106ce077e1dc","user":{"login":"OData","id":916520,"avatar_url":"https://avatars.githubusercontent.com/u/916520?v=3","gravatar_id":"","url":"https://api.github.com/users/OData","html_url":"https://github.com/OData","followers_url":"https://api.github.com/users/OData/followers","following_url":"https://api.github.com/users/OData/following{/other_user}","gists_url":"https://api.github.com/users/OData/gists{/gist_id}","starred_url":"https://api.github.com/users/OData/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OData/subscriptions","organizations_url":"https://api.github.com/users/OData/orgs","repos_url":"https://api.github.com/users/OData/repos","events_url":"https://api.github.com/users/OData/events{/privacy}","received_events_url":"https://api.github.com/users/OData/received_events","type":"Organization","site_admin":false},"repo":{"id":24577772,"name":"RESTier","full_name":"OData/RESTier","owner":{"login":"OData","id":916520,"avatar_url":"https://avatars.githubusercontent.com/u/916520?v=3","gravatar_id":"","url":"https://api.github.com/users/OData","html_url":"https://github.com/OData","followers_url":"https://api.github.com/users/OData/followers","following_url":"https://api.github.com/users/OData/following{/other_user}","gists_url":"https://api.github.com/users/OData/gists{/gist_id}","starred_url":"https://api.github.com/users/OData/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OData/subscriptions","organizations_url":"https://api.github.com/users/OData/orgs","repos_url":"https://api.github.com/users/OData/repos","events_url":"https://api.github.com/users/OData/events{/privacy}","received_events_url":"https://api.github.com/users/OData/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OData/RESTier","description":"A turn-key library for building RESTful services","fork":false,"url":"https://api.github.com/repos/OData/RESTier","forks_url":"https://api.github.com/repos/OData/RESTier/forks","keys_url":"https://api.github.com/repos/OData/RESTier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OData/RESTier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OData/RESTier/teams","hooks_url":"https://api.github.com/repos/OData/RESTier/hooks","issue_events_url":"https://api.github.com/repos/OData/RESTier/issues/events{/number}","events_url":"https://api.github.com/repos/OData/RESTier/events","assignees_url":"https://api.github.com/repos/OData/RESTier/assignees{/user}","branches_url":"https://api.github.com/repos/OData/RESTier/branches{/branch}","tags_url":"https://api.github.com/repos/OData/RESTier/tags","blobs_url":"https://api.github.com/repos/OData/RESTier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OData/RESTier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OData/RESTier/git/refs{/sha}","trees_url":"https://api.github.com/repos/OData/RESTier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OData/RESTier/statuses/{sha}","languages_url":"https://api.github.com/repos/OData/RESTier/languages","stargazers_url":"https://api.github.com/repos/OData/RESTier/stargazers","contributors_url":"https://api.github.com/repos/OData/RESTier/contributors","subscribers_url":"https://api.github.com/repos/OData/RESTier/subscribers","subscription_url":"https://api.github.com/repos/OData/RESTier/subscription","commits_url":"https://api.github.com/repos/OData/RESTier/commits{/sha}","git_commits_url":"https://api.github.com/repos/OData/RESTier/git/commits{/sha}","comments_url":"https://api.github.com/repos/OData/RESTier/comments{/number}","issue_comment_url":"https://api.github.com/repos/OData/RESTier/issues/comments{/number}","contents_url":"https://api.github.com/repos/OData/RESTier/contents/{+path}","compare_url":"https://api.github.com/repos/OData/RESTier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OData/RESTier/merges","archive_url":"https://api.github.com/repos/OData/RESTier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OData/RESTier/downloads","issues_url":"https://api.github.com/repos/OData/RESTier/issues{/number}","pulls_url":"https://api.github.com/repos/OData/RESTier/pulls{/number}","milestones_url":"https://api.github.com/repos/OData/RESTier/milestones{/number}","notifications_url":"https://api.github.com/repos/OData/RESTier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OData/RESTier/labels{/name}","releases_url":"https://api.github.com/repos/OData/RESTier/releases{/id}","deployments_url":"https://api.github.com/repos/OData/RESTier/deployments","created_at":"2014-09-29T02:54:06Z","updated_at":"2016-05-27T09:15:31Z","pushed_at":"2016-05-27T08:22:19Z","git_url":"git://github.com/OData/RESTier.git","ssh_url":"git@github.com:OData/RESTier.git","clone_url":"https://github.com/OData/RESTier.git","svn_url":"https://github.com/OData/RESTier","homepage":"http://odata.github.io/RESTier","size":6541,"stargazers_count":105,"watchers_count":105,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":37,"mirror_url":null,"open_issues_count":100,"forks":37,"open_issues":100,"watchers":105,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OData/RESTier/pulls/412"},"html":{"href":"https://github.com/OData/RESTier/pull/412"},"issue":{"href":"https://api.github.com/repos/OData/RESTier/issues/412"},"comments":{"href":"https://api.github.com/repos/OData/RESTier/issues/412/comments"},"review_comments":{"href":"https://api.github.com/repos/OData/RESTier/pulls/412/comments"},"review_comment":{"href":"https://api.github.com/repos/OData/RESTier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OData/RESTier/pulls/412/commits"},"statuses":{"href":"https://api.github.com/repos/OData/RESTier/statuses/0a61ee4ba4d926d18686920f0db654f1f606a0a2"}}}}
{"actor":{"display_login":"lewischeng-ms"}}