mvc5 IdentityAuthenticationManager reset database

Question!

How would I go about resetting the database that backs a Microsoft.AspNet.Identity.EntityFramework.IdentityAuthenticationManager.

I went to go add Database.SetInitializer(new DropCreateDatabaseAlways<>); to global.asax, but what should I use for TContext?



Answers

You probably want the DefaultIdentityDbContext if you aren't customizing things:

        Database.SetInitializer(new DropCreateDatabaseAlways
By : Hao Kung


This video can help you solving your question :)
By: admin