Tables are created in master
database instead of target database.
I’m building an ASP.NET Core application using Entity Framework Core. I’ve configured the connection string in appsettings.json
to point to my target database. However, when I run the Update-Database
command, the tables are being created in the master
database instead of the specified one.
I’ve verified that the connection string is correct and the database exists. I’m using SQL Server as the database provider.
4