Click here to Skip to main content
15,880,796 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am working on asp.net identity concept in mvc 5 using code first approach. I was able to create asp.net identity tables ,change the table names and datatype also ignore columns in the table. Now i need to ignore the IdentityUserRole table since User and role are one - one mapping i will have RoleId in User table. I need help to solve this.
Posted
Comments
Mostafa Asaduzzaman 17-Jun-15 18:24pm    
you can overwrite protected override void OnModelCreating(DbModelBuilder modelBuilder) in your DbContext class and then update table mapping there.
Have a look at: http://stackoverflow.com/questions/22855428/how-to-change-table-names-for-asp-net-identity-2-0-with-int-id-columns

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900