Reputation: 311
I accidentally discarded files that generated migrations. I have migration code, I lost the rest of the files.
Is there a way to restore it?
Upvotes: 1
Views: 428
Reputation: 3451
The discarded not committed code is lost.
If you have migrations, you can migrate in a database and generate your Model POCO files with EDMX.
https://learn.microsoft.com/en-us/ef/ef6/modeling/designer/workflows/database-first
Upvotes: 1