Help setting up ASP.NET Core Identity and SQL Server
I get an error on the second to last line
"Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid object name 'AspNetRoles'."
I'm looking at the SSMS and there are no databases/tables related to users... I was expecting the databases and tables to be made automatically if it finds them missing
Is there some kind of configuration I need to do?
5 Replies
this is my Program.cs:
it doesn't create the tables unless you have migrations and tell it to run them
I tried
Update-Database
and it told me "No migrations were applied. The database is already up to date."did you create any migrations
@Deluxe thank you
i forgot i need to create migrations before
Update-Database
i think it's working