SqlException: Invalid object name 'Movie'

asp.net-core asp.net-core-mvc c# entity-framework-core sqlite

Popular Answer

Because the mistake isSqlException: Invalid object name 'Movie' either the database you are referring to has not been created or the table entitled "Movie" has not been created.

Open SQL Server Object Explorer and verify that the Database name is the same as in to see whether the Database or table "Movie" has been created.appsettings.json You could require a migration if the database or table has not yet been created.

Open a migrationTools-> NuGet Package Manager-> Package Manager Console then press the following keys:

  1. Add-Migration MigrationName
  2. Update-Database

Then build and execute your project or verify SQL Server Object Explorer once more.

3
11/4/2017 9:00:08 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow