Error creating SQL Server table with Entity Framework

0

Delete a table from my project directly in Management Studio. Now when I run the application this error is returned:

system.data.sqlclient.sqlexception: Nome de objeto 'dbo.ContasPagarParcelas' inválido.

I can not recreate the table. I'm using Entity Framework.

    
asked by anonymous 15.04.2018 / 02:50

1 answer

0

You should use CodeFrist, and you should do the migration, right? if you create migrations, delete the migration files, and then have them created again.

If it does not work, your database has a table with migration history, you should turn it off

    
01.05.2018 / 00:23