Skip to content

Instantly share code, notes, and snippets.

@theuntitled
Created January 19, 2016 15:34
Show Gist options
  • Save theuntitled/38e136e8f222494d5971 to your computer and use it in GitHub Desktop.
Save theuntitled/38e136e8f222494d5971 to your computer and use it in GitHub Desktop.
Nice table names for the IdentityFramework
modelBuilder.Entity<ApplicationUser>().ToTable("Users");
modelBuilder.Entity<IdentityUserRole>().ToTable("UserRoles");
modelBuilder.Entity<IdentityUserLogin>().ToTable("UserLogins");
modelBuilder.Entity<IdentityUserClaim>().ToTable("UserClaims");
modelBuilder.Entity<IdentityRole>().ToTable("Roles");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment