{"action":"closed","issue":{"url":"https://api.github.com/repos/CollaboratingPlatypus/PetaPoco/issues/91","labels_url":"https://api.github.com/repos/CollaboratingPlatypus/PetaPoco/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/CollaboratingPlatypus/PetaPoco/issues/91/comments","events_url":"https://api.github.com/repos/CollaboratingPlatypus/PetaPoco/issues/91/events","html_url":"https://github.com/CollaboratingPlatypus/PetaPoco/issues/91","id":2464219,"number":91,"title":"T4 generates wrong primary key","user":{"login":"kinimatt","id":1244964,"avatar_url":"https://avatars.githubusercontent.com/u/1244964?v=3","gravatar_id":"","url":"https://api.github.com/users/kinimatt","html_url":"https://github.com/kinimatt","followers_url":"https://api.github.com/users/kinimatt/followers","following_url":"https://api.github.com/users/kinimatt/following{/other_user}","gists_url":"https://api.github.com/users/kinimatt/gists{/gist_id}","starred_url":"https://api.github.com/users/kinimatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinimatt/subscriptions","organizations_url":"https://api.github.com/users/kinimatt/orgs","repos_url":"https://api.github.com/users/kinimatt/repos","events_url":"https://api.github.com/users/kinimatt/events{/privacy}","received_events_url":"https://api.github.com/users/kinimatt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CollaboratingPlatypus/PetaPoco/labels/investigate","name":"investigate","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2011-12-06T16:33:16Z","updated_at":"2015-12-05T09:32:25Z","closed_at":"2015-12-05T09:32:25Z","body":"It happens when clustered index is other than primary key. Clustered index column is identified as Primary key instead of actual column. DB used sql server."}}