Home > Software design >  Microsoft.Data.SqlClient.SqlException: 'Invalid object name 'Sifarisler'.'
Microsoft.Data.SqlClient.SqlException: 'Invalid object name 'Sifarisler'.'

Time:06-29

Thats mistake

DbContext

Sifaris Model Class

Home Controller

cshtml

how can i fix this error.I couldn't understand why the error happened

CodePudding user response:

I think you failed to do migrations correctly for this Sifaris model. Go to Package Manager Console from the menu Tools -> NuGet Package Manager -> Package Manager Console in Visual Studio->Write command Add-migration Initial and then Update-database and it will resolve your issue.

  • Related