database - MVC4 WebSecurity.InitializeDatabaseConnection(..) Not Creating Tables -


i trying create "webpages_" tables can use them existing database simplemembership. have added following line global.asax.cs file

websecurity.initializedatabaseconnection("mydbcontext", "userprofile", "userid", "emailaddress", true);

i've added webmatrix.webdata dll , appropriate using statement global.asax.cs file.

long story short tables not being created , there no error message. i've set breakpoint , code executing in global.asax. page checks websecurity.isauthenticated correctly redirects home page.

i know if there sql script can run create tables manually , if possible, preventing tables being created if not exist?

thanks.

edit 1: think issue may have been caused link in global.asax.cs file

database.setinitializer<mydbcontext>(null); 


Comments