Standard Asp.net MVC authentication

Asked

Viewed 401 times

1

I’m starting studies on Asp.net MVC, and wanted to know where the visual studio creates the database and tables when choosing the standard MVC project. It seems that it already creates all the support for registration and login. Where are these tables ? Can I migrate this to a mysql database, for example?

1 answer

2


Where are these tables?

In the directory App_Data a provisional bank in the format LocalDb, but this file is hidden. In the Solution Explorer, click on the button Show All Files to see you:

Show All Files

I can migrate this to a mysql database, for example?

You can. First you need configure Entity Framework for Mysql, and then execute the command Update-Database to popular your bank. This answer teaches you how to do this for SQL Server, but it also works for Mysql.

  • Thanks Gypsy, worked beauty in vs2013. Now I’m testing vNext and this directory App_data doesn’t even exist anymore.

  • @Paul Ah, yes. The application I pasted from example is still MVC5.

  • I ended up discovering that the database he creates in c: Usuarios seuusuario

  • @paul It is normal to vary. It all depends on how the project is started.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.