We are using Entity Framework migrations in a project. So far we have added several migrations with no problem but it stopped working. Now whenever we try to add a migration EF shows an error with the following message:
The database name 'my-table-name' is invalid. Database names must be of the form [schema_name.]object_name.
Furthermore if we execute the update-database command, EF tells us that the model does not match the database. But the model has not been changed (we want to create an "empty" migration).
We have tried to go back to previous migrations, start from scratch but we always get the same result. Oddly enough sometimes the invalid table varies. We don't think is related to any pluralization issues on the context configuration.
Any help will be greatly appreciated.
- Entity-Framework version: 6.1.3-40302
- Database: SQL Server 11.0.5058.0