EF 6 - Migrations does not reflect changes in entities

0

I changed my entities and circled the command Update-Database -Verbose -Script only to see in% with_% what changes would be made. Generated legal script with all changes.

I closed the script window and circled the SQL , which did not map any of the changes I made to the entities, apparently assuming that I applied the changes to the database.

There is no Add-Migration beyond the old ones in my Migration folder, however when I use the Migrations command there is a Get-Migrations , a new migration, which is not in the file tree, nor in the directory , or anywhere on my computer.

I'd love to delete this file because I think it made my changes ignored, but I could not figure it out yet. Could someone give me a light? Do you have any Entity Framework 6 command in the Package Manager Console to delete this file?

    
asked by anonymous 30.06.2017 / 22:58

1 answer

1

Make a -force for your last migration before your automatic migration.

    
03.07.2017 / 03:56