I am trying to create a new web MVC project in Visual Studio 2015. I want to use my own database which already exists, and I want to add authentication models and controllers when creating the project.
The issue is:
I got how to make it working! In case someone has the same problem these are the steps:
Visual Studio creates the defaultConnection - Yes. But it doesn't create the tables (or probably even the database itself).
So I did the following:
Installed the project (ASP.NET Core Web Application with Framework template) using Individual User Accounts option as authentication.
Then went to appsettings.json and changed the connection string for my own database. (There is no needs to create asp auth tables, only have your own database ready)
I clicked debug and got the website displayed.
Clicked register and registered new user - I got the screen with button to do the migration.
I clicked the button and refreshed the page.
Went to my database and saw all tables have been created in there and the user inserted in the database.
I hope this helps anyone.