Search code examples
asp.net-mvcentity-frameworkasp.net-identity

Adding properties to users


I would like to know how I can add more properties to users in my website. I am using the default user template that is made with a MVC project. I tried using the answer to this post, but I keep getting:

The model backing the 'ApplicationDbContext' context has changed since the database was created

I believe I am missing something that isn't written in that post, can anyone point me to what I need to do?
Thanks.


Solution

  • I have figured out the answer. The default user identity model comes with it's own context.
    Everywhere I looked, people were always creating an additional context and I thought they both worked together just fine.
    Apparently You need to work with each one separately(add migrations to each, and update database with each).