{"action":"created","issue":{"url":"https://api.github.com/repos/ErikEJ/EFCorePowerTools/issues/63","repository_url":"https://api.github.com/repos/ErikEJ/EFCorePowerTools","labels_url":"https://api.github.com/repos/ErikEJ/EFCorePowerTools/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/ErikEJ/EFCorePowerTools/issues/63/comments","events_url":"https://api.github.com/repos/ErikEJ/EFCorePowerTools/issues/63/events","html_url":"https://github.com/ErikEJ/EFCorePowerTools/issues/63","id":336685234,"node_id":"MDU6SXNzdWUzMzY2ODUyMzQ=","number":63,"title":"When using DataAnnotations, the primary key attribute is missing","user":{"login":"calloncampbell","id":4095080,"node_id":"MDQ6VXNlcjQwOTUwODA=","avatar_url":"https://avatars3.githubusercontent.com/u/4095080?v=4","gravatar_id":"","url":"https://api.github.com/users/calloncampbell","html_url":"https://github.com/calloncampbell","followers_url":"https://api.github.com/users/calloncampbell/followers","following_url":"https://api.github.com/users/calloncampbell/following{/other_user}","gists_url":"https://api.github.com/users/calloncampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/calloncampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calloncampbell/subscriptions","organizations_url":"https://api.github.com/users/calloncampbell/orgs","repos_url":"https://api.github.com/users/calloncampbell/repos","events_url":"https://api.github.com/users/calloncampbell/events{/privacy}","received_events_url":"https://api.github.com/users/calloncampbell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-28T16:05:59Z","updated_at":"2018-06-28T20:31:03Z","closed_at":null,"author_association":"NONE","body":"When using Data Annotations to reverse engineer, the primary key attribute is missing for the generated entities.\r\n\r\nI had to add [Key] to my primary key properties to get my solution to work at runtime. \r\n\r\n### Steps to reproduce\r\n1. Reverse engineer\r\n2. Select tables\r\n2. Enable \"Use DataAnnotation attributes to configure the model\r\n3. Press OK to generate the models\r\n\r\n### Further technical details\r\nEF Core Power Tools version: Version 1.0.604.0\r\nDatabase engine: SQL Server\r\nVisual Studio version: Visual Studio 2017 15.7.x\r\n"},"comment":{"url":"https://api.github.com/repos/ErikEJ/EFCorePowerTools/issues/comments/401163745","html_url":"https://github.com/ErikEJ/EFCorePowerTools/issues/63#issuecomment-401163745","issue_url":"https://api.github.com/repos/ErikEJ/EFCorePowerTools/issues/63","id":401163745,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTE2Mzc0NQ==","user":{"login":"calloncampbell","id":4095080,"node_id":"MDQ6VXNlcjQwOTUwODA=","avatar_url":"https://avatars3.githubusercontent.com/u/4095080?v=4","gravatar_id":"","url":"https://api.github.com/users/calloncampbell","html_url":"https://github.com/calloncampbell","followers_url":"https://api.github.com/users/calloncampbell/followers","following_url":"https://api.github.com/users/calloncampbell/following{/other_user}","gists_url":"https://api.github.com/users/calloncampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/calloncampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calloncampbell/subscriptions","organizations_url":"https://api.github.com/users/calloncampbell/orgs","repos_url":"https://api.github.com/users/calloncampbell/repos","events_url":"https://api.github.com/users/calloncampbell/events{/privacy}","received_events_url":"https://api.github.com/users/calloncampbell/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T20:31:03Z","updated_at":"2018-06-28T20:31:03Z","author_association":"NONE","body":"CREATE TABLE [dbo].[GroupTier] (\n    [GroupTierID]         INT           IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL,\n    [OrganizationID]      INT           NOT NULL,\n    [TierLevel]           INT           NOT NULL,\n    [Name]                VARCHAR (100) NOT NULL,\n    CONSTRAINT [PK_GroupTier] PRIMARY KEY CLUSTERED ([GroupTierID] ASC) WITH (FILLFACTOR = 80)\n);\n\n\nFrom: Erik Ejlskov Jensen<mailto:notifications@github.com>\nSent: June 28, 2018 2:36 PM\nTo: ErikEJ/EFCorePowerTools<mailto:EFCorePowerTools@noreply.github.com>\nCc: Callon Campbell<mailto:calloncampbell@msn.com>; Author<mailto:author@noreply.github.com>\nSubject: Re: [ErikEJ/EFCorePowerTools] When using DataAnnotations, the primary key attribute is missing (#63)\n\n\nI need the table create script also..\n\n—\nYou are receiving this because you authored the thread.\nReply to this email directly, view it on GitHub<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FErikEJ%2FEFCorePowerTools%2Fissues%2F63%23issuecomment-401132203&data=02%7C01%7C%7C2f0decc7955342757e8508d5dd260c06%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636658077826220638&sdata=gTPaaPoJb8mGQGTRNR39C2coo5GdkKsyKaap9xVW2D0%3D&reserved=0>, or mute the thread<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD58aGQepGsmGpqVrqmga1rFanSQ4benks5uBSIlgaJpZM4U7qsN&data=02%7C01%7C%7C2f0decc7955342757e8508d5dd260c06%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636658077826220638&sdata=NlZVoDUpBu7n4ni3tD1bqLSmpqN5pxYc0wCrsw1bn9c%3D&reserved=0>.\n\n"}}
{"actor":{"display_login":"calloncampbell"}}