Reputation: 1511
I want to use asp.net identity on a database that already exists.
I read this to do: How to add ASP.NET MVC5 Identity Authentication to existing database
but I am worried because I know asp.net identity uses code first, so can I lose my data? or it simply adds its tables to my db ? and in the future if I will update the asp.net identity package, can it drop the database?
** Now the database has only tables and some data (without others user/password tables)
Upvotes: 0
Views: 207
Reputation: 3469
You shouldn't have any problems since you don't have existing users. The only time you'd have problems with migrating existing users to identity 2.0, because the password hashing, but you'll be good to go.
Always back up your database before you make any changes to the database though.
Upvotes: 1