{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Identity/issues/753","repository_url":"https://api.github.com/repos/aspnet/Identity","labels_url":"https://api.github.com/repos/aspnet/Identity/issues/753/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Identity/issues/753/comments","events_url":"https://api.github.com/repos/aspnet/Identity/issues/753/events","html_url":"https://github.com/aspnet/Identity/issues/753","id":135545127,"number":753,"title":"Navigation property for IdentityUserRole","user":{"login":"jvelezc","id":3653845,"avatar_url":"https://avatars.githubusercontent.com/u/3653845?v=3","gravatar_id":"","url":"https://api.github.com/users/jvelezc","html_url":"https://github.com/jvelezc","followers_url":"https://api.github.com/users/jvelezc/followers","following_url":"https://api.github.com/users/jvelezc/following{/other_user}","gists_url":"https://api.github.com/users/jvelezc/gists{/gist_id}","starred_url":"https://api.github.com/users/jvelezc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvelezc/subscriptions","organizations_url":"https://api.github.com/users/jvelezc/orgs","repos_url":"https://api.github.com/users/jvelezc/repos","events_url":"https://api.github.com/users/jvelezc/events{/privacy}","received_events_url":"https://api.github.com/users/jvelezc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-22T21:10:59Z","updated_at":"2016-02-24T22:09:55Z","closed_at":"2016-02-24T22:06:40Z","body":" public  class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, string>\r\n{\r\n //giving me straight access instead of using RoleManager\r\n    public DbSet<ApplicationRole> UserLogins { get; set; }\r\n   public DbSet<ApplicationRole> Roles { get; set; }\r\n   public DbSet<ApplicationUser> ApplicationUser { get; set; }\r\n}\r\n//If only https://github.com/aspnet/Identity/blob/dev/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore/IdentityUserRole.cs\r\n\r\nhad a navigational property to roles I would have been able to get the role name!\r\n\r\nvar query = _dbCtx.AspNetUser\r\n.Include(apu=>apu.AspNetUser.Roles).select(role=>role.Name)\r\n.ToList();\r\n\r\nCan I do a PR with navigational properties so that we can query directly using ApplicationContext instead of using the rolemanager? I can wait for RC2 to do it as well and if it doesnt have this feature add it. "},"comment":{"url":"https://api.github.com/repos/aspnet/Identity/issues/comments/188473929","html_url":"https://github.com/aspnet/Identity/issues/753#issuecomment-188473929","issue_url":"https://api.github.com/repos/aspnet/Identity/issues/753","id":188473929,"user":{"login":"blowdart","id":796298,"avatar_url":"https://avatars.githubusercontent.com/u/796298?v=3","gravatar_id":"","url":"https://api.github.com/users/blowdart","html_url":"https://github.com/blowdart","followers_url":"https://api.github.com/users/blowdart/followers","following_url":"https://api.github.com/users/blowdart/following{/other_user}","gists_url":"https://api.github.com/users/blowdart/gists{/gist_id}","starred_url":"https://api.github.com/users/blowdart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blowdart/subscriptions","organizations_url":"https://api.github.com/users/blowdart/orgs","repos_url":"https://api.github.com/users/blowdart/repos","events_url":"https://api.github.com/users/blowdart/events{/privacy}","received_events_url":"https://api.github.com/users/blowdart/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T22:09:55Z","updated_at":"2016-02-24T22:09:55Z","body":"@jvelezc Please feel free to create a PR against issue #610 and we'll take a look. There used to be some interesting problems with recursion that EF has now solved."}}