{"action":"created","comment":{"url":"https://api.github.com/repos/OData/RESTier/pulls/comments/34437082","id":34437082,"diff_hunk":"@@ -178,13 +177,63 @@ private static void SetComputedAnnotation(EdmModel model, IEdmProperty target)\n             model.SetVocabularyAnnotation(annotation);\n         }\n \n-        private static IEdmPrimitiveTypeReference GetPrimitiveTypeReference(\n-            EdmProperty efProperty)\n+        private static IEdmTypeReference GetTypeReference(\n+            EdmProperty efProperty,\n+            EdmModel model,\n+            IDictionary<MetadataItem, IEdmElement> elementMap)\n+        {\n+            if (efProperty.IsPrimitiveType)\n+            {\n+                return GetPrimitiveTypeReference(efProperty);\n+            }\n+            else if (efProperty.IsComplexType)\n+            {\n+                return GetComplexTypeReference(efProperty, model, elementMap);\n+            }\n+\n+            // TODO GitHubIssue#103 : Choose property error message for unknown type\n+            return null;","path":"src/Microsoft.Restier.EntityFramework/Model/ModelProducer.cs","position":82,"original_position":82,"commit_id":"5b751098a211939ac534f627aa545935668c3cbc","original_commit_id":"5b751098a211939ac534f627aa545935668c3cbc","user":{"login":"karataliu","id":10071498,"avatar_url":"https://avatars.githubusercontent.com/u/10071498?v=3","gravatar_id":"","url":"https://api.github.com/users/karataliu","html_url":"https://github.com/karataliu","followers_url":"https://api.github.com/users/karataliu/followers","following_url":"https://api.github.com/users/karataliu/following{/other_user}","gists_url":"https://api.github.com/users/karataliu/gists{/gist_id}","starred_url":"https://api.github.com/users/karataliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karataliu/subscriptions","organizations_url":"https://api.github.com/users/karataliu/orgs","repos_url":"https://api.github.com/users/karataliu/repos","events_url":"https://api.github.com/users/karataliu/events{/privacy}","received_events_url":"https://api.github.com/users/karataliu/received_events","type":"User","site_admin":false},"body":"navigation property would be handled by Line 111 with AssociationSets.","created_at":"2015-07-13T07:00:26Z","updated_at":"2015-07-13T07:00:26Z","html_url":"https://github.com/OData/RESTier/pull/99#discussion_r34437082","pull_request_url":"https://api.github.com/repos/OData/RESTier/pulls/99","_links":{"self":{"href":"https://api.github.com/repos/OData/RESTier/pulls/comments/34437082"},"html":{"href":"https://github.com/OData/RESTier/pull/99#discussion_r34437082"},"pull_request":{"href":"https://api.github.com/repos/OData/RESTier/pulls/99"}}},"pull_request":{"url":"https://api.github.com/repos/OData/RESTier/pulls/99","id":39249054,"html_url":"https://github.com/OData/RESTier/pull/99","diff_url":"https://github.com/OData/RESTier/pull/99.diff","patch_url":"https://github.com/OData/RESTier/pull/99.patch","issue_url":"https://api.github.com/repos/OData/RESTier/issues/99","number":99,"state":"open","locked":false,"title":"Support complex type.","user":{"login":"karataliu","id":10071498,"avatar_url":"https://avatars.githubusercontent.com/u/10071498?v=3","gravatar_id":"","url":"https://api.github.com/users/karataliu","html_url":"https://github.com/karataliu","followers_url":"https://api.github.com/users/karataliu/followers","following_url":"https://api.github.com/users/karataliu/following{/other_user}","gists_url":"https://api.github.com/users/karataliu/gists{/gist_id}","starred_url":"https://api.github.com/users/karataliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karataliu/subscriptions","organizations_url":"https://api.github.com/users/karataliu/orgs","repos_url":"https://api.github.com/users/karataliu/repos","events_url":"https://api.github.com/users/karataliu/events{/privacy}","received_events_url":"https://api.github.com/users/karataliu/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-06T09:18:38Z","updated_at":"2015-07-13T07:00:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a2d07540d177b8f628821046469088859e57ba9","assignee":null,"milestone":{"url":"https://api.github.com/repos/OData/RESTier/milestones/4","html_url":"https://github.com/OData/RESTier/milestones/v0.3","labels_url":"https://api.github.com/repos/OData/RESTier/milestones/4/labels","id":1108396,"number":4,"title":"v0.3","description":"","creator":{"login":"congysu","id":7425148,"avatar_url":"https://avatars.githubusercontent.com/u/7425148?v=3","gravatar_id":"","url":"https://api.github.com/users/congysu","html_url":"https://github.com/congysu","followers_url":"https://api.github.com/users/congysu/followers","following_url":"https://api.github.com/users/congysu/following{/other_user}","gists_url":"https://api.github.com/users/congysu/gists{/gist_id}","starred_url":"https://api.github.com/users/congysu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/congysu/subscriptions","organizations_url":"https://api.github.com/users/congysu/orgs","repos_url":"https://api.github.com/users/congysu/repos","events_url":"https://api.github.com/users/congysu/events{/privacy}","received_events_url":"https://api.github.com/users/congysu/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":3,"state":"open","created_at":"2015-05-13T11:26:01Z","updated_at":"2015-07-13T05:22:37Z","due_on":"2015-06-26T16:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/OData/RESTier/pulls/99/commits","review_comments_url":"https://api.github.com/repos/OData/RESTier/pulls/99/comments","review_comment_url":"https://api.github.com/repos/OData/RESTier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OData/RESTier/issues/99/comments","statuses_url":"https://api.github.com/repos/OData/RESTier/statuses/5b751098a211939ac534f627aa545935668c3cbc","head":{"label":"karataliu:master","ref":"master","sha":"5b751098a211939ac534f627aa545935668c3cbc","user":{"login":"karataliu","id":10071498,"avatar_url":"https://avatars.githubusercontent.com/u/10071498?v=3","gravatar_id":"","url":"https://api.github.com/users/karataliu","html_url":"https://github.com/karataliu","followers_url":"https://api.github.com/users/karataliu/followers","following_url":"https://api.github.com/users/karataliu/following{/other_user}","gists_url":"https://api.github.com/users/karataliu/gists{/gist_id}","starred_url":"https://api.github.com/users/karataliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karataliu/subscriptions","organizations_url":"https://api.github.com/users/karataliu/orgs","repos_url":"https://api.github.com/users/karataliu/repos","events_url":"https://api.github.com/users/karataliu/events{/privacy}","received_events_url":"https://api.github.com/users/karataliu/received_events","type":"User","site_admin":false},"repo":{"id":35418951,"name":"RESTier","full_name":"karataliu/RESTier","owner":{"login":"karataliu","id":10071498,"avatar_url":"https://avatars.githubusercontent.com/u/10071498?v=3","gravatar_id":"","url":"https://api.github.com/users/karataliu","html_url":"https://github.com/karataliu","followers_url":"https://api.github.com/users/karataliu/followers","following_url":"https://api.github.com/users/karataliu/following{/other_user}","gists_url":"https://api.github.com/users/karataliu/gists{/gist_id}","starred_url":"https://api.github.com/users/karataliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karataliu/subscriptions","organizations_url":"https://api.github.com/users/karataliu/orgs","repos_url":"https://api.github.com/users/karataliu/repos","events_url":"https://api.github.com/users/karataliu/events{/privacy}","received_events_url":"https://api.github.com/users/karataliu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/karataliu/RESTier","description":"A turn-key library for building RESTful services","fork":true,"url":"https://api.github.com/repos/karataliu/RESTier","forks_url":"https://api.github.com/repos/karataliu/RESTier/forks","keys_url":"https://api.github.com/repos/karataliu/RESTier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karataliu/RESTier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karataliu/RESTier/teams","hooks_url":"https://api.github.com/repos/karataliu/RESTier/hooks","issue_events_url":"https://api.github.com/repos/karataliu/RESTier/issues/events{/number}","events_url":"https://api.github.com/repos/karataliu/RESTier/events","assignees_url":"https://api.github.com/repos/karataliu/RESTier/assignees{/user}","branches_url":"https://api.github.com/repos/karataliu/RESTier/branches{/branch}","tags_url":"https://api.github.com/repos/karataliu/RESTier/tags","blobs_url":"https://api.github.com/repos/karataliu/RESTier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karataliu/RESTier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karataliu/RESTier/git/refs{/sha}","trees_url":"https://api.github.com/repos/karataliu/RESTier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karataliu/RESTier/statuses/{sha}","languages_url":"https://api.github.com/repos/karataliu/RESTier/languages","stargazers_url":"https://api.github.com/repos/karataliu/RESTier/stargazers","contributors_url":"https://api.github.com/repos/karataliu/RESTier/contributors","subscribers_url":"https://api.github.com/repos/karataliu/RESTier/subscribers","subscription_url":"https://api.github.com/repos/karataliu/RESTier/subscription","commits_url":"https://api.github.com/repos/karataliu/RESTier/commits{/sha}","git_commits_url":"https://api.github.com/repos/karataliu/RESTier/git/commits{/sha}","comments_url":"https://api.github.com/repos/karataliu/RESTier/comments{/number}","issue_comment_url":"https://api.github.com/repos/karataliu/RESTier/issues/comments{/number}","contents_url":"https://api.github.com/repos/karataliu/RESTier/contents/{+path}","compare_url":"https://api.github.com/repos/karataliu/RESTier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karataliu/RESTier/merges","archive_url":"https://api.github.com/repos/karataliu/RESTier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karataliu/RESTier/downloads","issues_url":"https://api.github.com/repos/karataliu/RESTier/issues{/number}","pulls_url":"https://api.github.com/repos/karataliu/RESTier/pulls{/number}","milestones_url":"https://api.github.com/repos/karataliu/RESTier/milestones{/number}","notifications_url":"https://api.github.com/repos/karataliu/RESTier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karataliu/RESTier/labels{/name}","releases_url":"https://api.github.com/repos/karataliu/RESTier/releases{/id}","created_at":"2015-05-11T11:09:15Z","updated_at":"2015-05-11T11:09:16Z","pushed_at":"2015-07-09T06:39:41Z","git_url":"git://github.com/karataliu/RESTier.git","ssh_url":"git@github.com:karataliu/RESTier.git","clone_url":"https://github.com/karataliu/RESTier.git","svn_url":"https://github.com/karataliu/RESTier","homepage":"","size":3885,"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":"0574caf7e9ae6da40fc351bd5d65a72fe5943070","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}","created_at":"2014-09-29T02:54:06Z","updated_at":"2015-07-06T10:33:00Z","pushed_at":"2015-07-13T06:00:20Z","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":5143,"stargazers_count":49,"watchers_count":49,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":87,"forks":14,"open_issues":87,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OData/RESTier/pulls/99"},"html":{"href":"https://github.com/OData/RESTier/pull/99"},"issue":{"href":"https://api.github.com/repos/OData/RESTier/issues/99"},"comments":{"href":"https://api.github.com/repos/OData/RESTier/issues/99/comments"},"review_comments":{"href":"https://api.github.com/repos/OData/RESTier/pulls/99/comments"},"review_comment":{"href":"https://api.github.com/repos/OData/RESTier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OData/RESTier/pulls/99/commits"},"statuses":{"href":"https://api.github.com/repos/OData/RESTier/statuses/5b751098a211939ac534f627aa545935668c3cbc"}}}}