{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/AspNetCore/issues/5759","repository_url":"https://api.github.com/repos/aspnet/AspNetCore","labels_url":"https://api.github.com/repos/aspnet/AspNetCore/issues/5759/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/AspNetCore/issues/5759/comments","events_url":"https://api.github.com/repos/aspnet/AspNetCore/issues/5759/events","html_url":"https://github.com/aspnet/AspNetCore/issues/5759","id":392366695,"node_id":"MDU6SXNzdWUzOTIzNjY2OTU=","number":5759,"title":"Changing the primary key of IdentityUserClaim<> and IdentityRoleClaim<>","user":{"login":"aneequrrehman","id":13783335,"node_id":"MDQ6VXNlcjEzNzgzMzM1","avatar_url":"https://avatars3.githubusercontent.com/u/13783335?v=4","gravatar_id":"","url":"https://api.github.com/users/aneequrrehman","html_url":"https://github.com/aneequrrehman","followers_url":"https://api.github.com/users/aneequrrehman/followers","following_url":"https://api.github.com/users/aneequrrehman/following{/other_user}","gists_url":"https://api.github.com/users/aneequrrehman/gists{/gist_id}","starred_url":"https://api.github.com/users/aneequrrehman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aneequrrehman/subscriptions","organizations_url":"https://api.github.com/users/aneequrrehman/orgs","repos_url":"https://api.github.com/users/aneequrrehman/repos","events_url":"https://api.github.com/users/aneequrrehman/events{/privacy}","received_events_url":"https://api.github.com/users/aneequrrehman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-18T22:41:45Z","updated_at":"2018-12-18T22:41:45Z","closed_at":null,"author_association":"NONE","body":"Well, I have updated everything necessary to change all the Identity tables' primary keys to be `Guid`s, but I couldn't find any way to change the primary keys' types for `IdentityUserClaim<>` and `IdentityRoleClaim<>` tables. \r\n\r\nI have added this line in `ApplicationUser.cs`\r\n\r\n    public virtual ICollection<IdentityUserClaim<Guid>> Claims { get; } = new List<IdentityUserClaim<Guid>>();\r\n\r\n\r\nThere should be some way to change the default primary keys (`int`s) for `IdentityUserClaim<>` and `IdentityRoleClaim<>`?. Or am I missing something?\r\n\r\nPerhaps something like `IdentityUserClaim<TKey, TUserKey>` instead of `IdentityUserClaim<TKey>` (the name **TKey** is misleading as well unless one looks at the summary, IMHO)?"}}
{"actor":{"display_login":"aneequrrehman"}}