Answers for "sqlexception: invalid object name"

1

sqlexception: invalid object name

Since the error is SqlException: Invalid object name 'Movie', that means the table named 'Movie' has not created or the Database you are referring has not created.

To see if the Database or table 'Movie' has created, open SQL Server Object Explorer and check the Database name is the same as in appsettings.json. If the Database or table has not created, you may need a migration.

To migrate, open Tools-> NuGet Package Manager-> Package Manager Console and hit the following commands:

Add-Migration MigrationName
Update-Database
Then check SQL Server Object Explorer again or build and run your project.
Posted by: Guest on April-29-2021
0

invalid object name sql

check your tables, columns, databases name properly
Posted by: Guest on May-02-2021

Code answers related to "sqlexception: invalid object name"

Browse Popular Code Answers by Language