{"action":"created","comment":{"url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls/comments/35249046","id":35249046,"diff_hunk":"@@ -45,6 +45,11 @@ where prop.PropertyType.IsInstanceOfType(parent)\n             var childIdProperty = child.GetType().GetProperty(parentProperty.Name + \"Id\");\n             var parentIdProperty = parent.GetType().GetProperty(\"Id\");\n \n+            if (parentIdProperty == null)\n+            {\n+                parentIdProperty = parent.GetType().GetProperty(parentProperty.Name + \"Id\");\n+            }\n+","path":"src/AutoFixture.AutoEF/Interception/ParentPropertySetterInterceptor.cs","position":8,"original_position":8,"commit_id":"9993fcfb0afdf078198a704e3382256785929dd7","original_commit_id":"9993fcfb0afdf078198a704e3382256785929dd7","user":{"login":"alexfoxgill","id":3819573,"avatar_url":"https://avatars.githubusercontent.com/u/3819573?v=3","gravatar_id":"","url":"https://api.github.com/users/alexfoxgill","html_url":"https://github.com/alexfoxgill","followers_url":"https://api.github.com/users/alexfoxgill/followers","following_url":"https://api.github.com/users/alexfoxgill/following{/other_user}","gists_url":"https://api.github.com/users/alexfoxgill/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfoxgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfoxgill/subscriptions","organizations_url":"https://api.github.com/users/alexfoxgill/orgs","repos_url":"https://api.github.com/users/alexfoxgill/repos","events_url":"https://api.github.com/users/alexfoxgill/events{/privacy}","received_events_url":"https://api.github.com/users/alexfoxgill/received_events","type":"User","site_admin":false},"body":":+1:","created_at":"2015-07-22T18:49:09Z","updated_at":"2015-07-22T18:49:09Z","html_url":"https://github.com/alexfoxgill/AutoFixture.AutoEntityFramework/pull/7#discussion_r35249046","pull_request_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls/comments/35249046"},"html":{"href":"https://github.com/alexfoxgill/AutoFixture.AutoEntityFramework/pull/7#discussion_r35249046"},"pull_request":{"href":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls/7","id":40586600,"html_url":"https://github.com/alexfoxgill/AutoFixture.AutoEntityFramework/pull/7","diff_url":"https://github.com/alexfoxgill/AutoFixture.AutoEntityFramework/pull/7.diff","patch_url":"https://github.com/alexfoxgill/AutoFixture.AutoEntityFramework/pull/7.patch","issue_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/issues/7","number":7,"state":"open","locked":false,"title":"Table name ids","user":{"login":"doowruc","id":8654129,"avatar_url":"https://avatars.githubusercontent.com/u/8654129?v=3","gravatar_id":"","url":"https://api.github.com/users/doowruc","html_url":"https://github.com/doowruc","followers_url":"https://api.github.com/users/doowruc/followers","following_url":"https://api.github.com/users/doowruc/following{/other_user}","gists_url":"https://api.github.com/users/doowruc/gists{/gist_id}","starred_url":"https://api.github.com/users/doowruc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doowruc/subscriptions","organizations_url":"https://api.github.com/users/doowruc/orgs","repos_url":"https://api.github.com/users/doowruc/repos","events_url":"https://api.github.com/users/doowruc/events{/privacy}","received_events_url":"https://api.github.com/users/doowruc/received_events","type":"User","site_admin":false},"body":"Support for db schema where id columns include the name of the table. \r\n\r\ne.g.: \r\n\r\n    Table: Parent\r\n    Columns: ParentId, Name\r\n\r\n    Table: Child\r\n    Columns: ChildId, ParentId, Name","created_at":"2015-07-22T16:51:46Z","updated_at":"2015-07-22T18:49:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88798d38db578b916bf120053af46d470d9f7d0a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls/7/commits","review_comments_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls/7/comments","review_comment_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/issues/7/comments","statuses_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/statuses/9993fcfb0afdf078198a704e3382256785929dd7","head":{"label":"doowruc:TableNameIds","ref":"TableNameIds","sha":"9993fcfb0afdf078198a704e3382256785929dd7","user":{"login":"doowruc","id":8654129,"avatar_url":"https://avatars.githubusercontent.com/u/8654129?v=3","gravatar_id":"","url":"https://api.github.com/users/doowruc","html_url":"https://github.com/doowruc","followers_url":"https://api.github.com/users/doowruc/followers","following_url":"https://api.github.com/users/doowruc/following{/other_user}","gists_url":"https://api.github.com/users/doowruc/gists{/gist_id}","starred_url":"https://api.github.com/users/doowruc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doowruc/subscriptions","organizations_url":"https://api.github.com/users/doowruc/orgs","repos_url":"https://api.github.com/users/doowruc/repos","events_url":"https://api.github.com/users/doowruc/events{/privacy}","received_events_url":"https://api.github.com/users/doowruc/received_events","type":"User","site_admin":false},"repo":{"id":39515323,"name":"AutoFixture.AutoEntityFramework","full_name":"doowruc/AutoFixture.AutoEntityFramework","owner":{"login":"doowruc","id":8654129,"avatar_url":"https://avatars.githubusercontent.com/u/8654129?v=3","gravatar_id":"","url":"https://api.github.com/users/doowruc","html_url":"https://github.com/doowruc","followers_url":"https://api.github.com/users/doowruc/followers","following_url":"https://api.github.com/users/doowruc/following{/other_user}","gists_url":"https://api.github.com/users/doowruc/gists{/gist_id}","starred_url":"https://api.github.com/users/doowruc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doowruc/subscriptions","organizations_url":"https://api.github.com/users/doowruc/orgs","repos_url":"https://api.github.com/users/doowruc/repos","events_url":"https://api.github.com/users/doowruc/events{/privacy}","received_events_url":"https://api.github.com/users/doowruc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/doowruc/AutoFixture.AutoEntityFramework","description":"An AutoFixture customization that lazy-loads navigation properties on Entity Framework objects","fork":true,"url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework","forks_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/forks","keys_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/teams","hooks_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/hooks","issue_events_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/issues/events{/number}","events_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/events","assignees_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/assignees{/user}","branches_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/branches{/branch}","tags_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/tags","blobs_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/git/refs{/sha}","trees_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/statuses/{sha}","languages_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/languages","stargazers_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/stargazers","contributors_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/contributors","subscribers_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/subscribers","subscription_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/subscription","commits_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/commits{/sha}","git_commits_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/git/commits{/sha}","comments_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/comments{/number}","issue_comment_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/issues/comments{/number}","contents_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/contents/{+path}","compare_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/merges","archive_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/downloads","issues_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/issues{/number}","pulls_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/pulls{/number}","milestones_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/milestones{/number}","notifications_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/labels{/name}","releases_url":"https://api.github.com/repos/doowruc/AutoFixture.AutoEntityFramework/releases{/id}","created_at":"2015-07-22T15:52:43Z","updated_at":"2015-07-22T15:52:43Z","pushed_at":"2015-07-22T16:47:31Z","git_url":"git://github.com/doowruc/AutoFixture.AutoEntityFramework.git","ssh_url":"git@github.com:doowruc/AutoFixture.AutoEntityFramework.git","clone_url":"https://github.com/doowruc/AutoFixture.AutoEntityFramework.git","svn_url":"https://github.com/doowruc/AutoFixture.AutoEntityFramework","homepage":null,"size":12912,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alexfoxgill:master","ref":"master","sha":"b8e5bd45d4bc3989239299595dcde064ffcf2dc2","user":{"login":"alexfoxgill","id":3819573,"avatar_url":"https://avatars.githubusercontent.com/u/3819573?v=3","gravatar_id":"","url":"https://api.github.com/users/alexfoxgill","html_url":"https://github.com/alexfoxgill","followers_url":"https://api.github.com/users/alexfoxgill/followers","following_url":"https://api.github.com/users/alexfoxgill/following{/other_user}","gists_url":"https://api.github.com/users/alexfoxgill/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfoxgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfoxgill/subscriptions","organizations_url":"https://api.github.com/users/alexfoxgill/orgs","repos_url":"https://api.github.com/users/alexfoxgill/repos","events_url":"https://api.github.com/users/alexfoxgill/events{/privacy}","received_events_url":"https://api.github.com/users/alexfoxgill/received_events","type":"User","site_admin":false},"repo":{"id":16344626,"name":"AutoFixture.AutoEntityFramework","full_name":"alexfoxgill/AutoFixture.AutoEntityFramework","owner":{"login":"alexfoxgill","id":3819573,"avatar_url":"https://avatars.githubusercontent.com/u/3819573?v=3","gravatar_id":"","url":"https://api.github.com/users/alexfoxgill","html_url":"https://github.com/alexfoxgill","followers_url":"https://api.github.com/users/alexfoxgill/followers","following_url":"https://api.github.com/users/alexfoxgill/following{/other_user}","gists_url":"https://api.github.com/users/alexfoxgill/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfoxgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfoxgill/subscriptions","organizations_url":"https://api.github.com/users/alexfoxgill/orgs","repos_url":"https://api.github.com/users/alexfoxgill/repos","events_url":"https://api.github.com/users/alexfoxgill/events{/privacy}","received_events_url":"https://api.github.com/users/alexfoxgill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexfoxgill/AutoFixture.AutoEntityFramework","description":"An AutoFixture customization that lazy-loads navigation properties on Entity Framework objects","fork":false,"url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework","forks_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/forks","keys_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/teams","hooks_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/hooks","issue_events_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/issues/events{/number}","events_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/events","assignees_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/assignees{/user}","branches_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/branches{/branch}","tags_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/tags","blobs_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/statuses/{sha}","languages_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/languages","stargazers_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/stargazers","contributors_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/contributors","subscribers_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/subscribers","subscription_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/subscription","commits_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/contents/{+path}","compare_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/merges","archive_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/downloads","issues_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/issues{/number}","pulls_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls{/number}","milestones_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/milestones{/number}","notifications_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/labels{/name}","releases_url":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/releases{/id}","created_at":"2014-01-29T12:51:39Z","updated_at":"2015-06-25T19:29:03Z","pushed_at":"2015-07-22T16:51:47Z","git_url":"git://github.com/alexfoxgill/AutoFixture.AutoEntityFramework.git","ssh_url":"git@github.com:alexfoxgill/AutoFixture.AutoEntityFramework.git","clone_url":"https://github.com/alexfoxgill/AutoFixture.AutoEntityFramework.git","svn_url":"https://github.com/alexfoxgill/AutoFixture.AutoEntityFramework","homepage":null,"size":13038,"stargazers_count":6,"watchers_count":6,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls/7"},"html":{"href":"https://github.com/alexfoxgill/AutoFixture.AutoEntityFramework/pull/7"},"issue":{"href":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/issues/7"},"comments":{"href":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/alexfoxgill/AutoFixture.AutoEntityFramework/statuses/9993fcfb0afdf078198a704e3382256785929dd7"}}}}