When you create a new MVC5 project in VS2013 with Individual User Accounts, the account tables (dbo.AspNet*) are created automatically in the database defined by the DefaultConnection the first time you try to log in or register a new account. Does anyone know the exact class/method in the project that creates these tables?
With SimpleMembership in VS2012 / MVC4, the tables were created using this method:
WebSecurity.InitializeDatabaseConnection("DefaultConnection", "UserProfile", "UserId", "UserName", autoCreateTables: true);
which is called in the SimpleMembershipInitializer class of the InitializeSimpleMembershipAttribute.cs filter.
I have not been able to find a similar method in a VS2013 / MVC5 project.
Any clues?
By default, the MVC5 template relies on EntityFramework CodeFirst's default database initializer to create the database the first time its needed.
See CreateDatabaseIfNotExists