Skip to content

Instantly share code, notes, and snippets.

@Phtes
Created October 8, 2015 23:04
Show Gist options
  • Save Phtes/8fd4903d481e9710907a to your computer and use it in GitHub Desktop.
Save Phtes/8fd4903d481e9710907a to your computer and use it in GitHub Desktop.
modelBuilder.Entity<IdentityUserLogin>().HasKey<string>(l => l.UserId);
modelBuilder.Entity<IdentityRole>().HasKey<string>(r => r.Id);
modelBuilder.Entity<IdentityUserRole>().HasKey(r => new { r.RoleId, r.UserId });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment