0

I am using Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext class for authentication of my users. This is a new concept to me and it confuses me a lot.

By default it creates 5 tables with default names: AspNetRoles, AspNetUserRoles, AspNetUserLogins, AspNetUsers which I think are a bit forcing on the user and does not suit my architecture. Also I want to add more columns to the above mentioned tables.

Is there a way to change the table names and add new columns to the existing tables?

using VS 2013, SQL Server 2014 Express.

2
  • possible duplicate of Extending MembershipProvider Commented Jun 28, 2015 at 13:24
  • 1
    Not really, that was asked 5 years ago which means a different auth library was used. Commented Jun 28, 2015 at 15:15

1 Answer 1

1

By default the class for the user that you get from the project template is called something like ApplicationUser. Just adding new properties to that one let you store new columns.

Here is a question that explains how to change the table names: How can I change the table names when using Visual Studio 2013 ASP.NET Identity?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.