Home > Software design >  Can I restore discarded files from Visual studio git changes?
Can I restore discarded files from Visual studio git changes?

Time:06-24

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?

CodePudding user response:

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://docs.microsoft.com/en-us/ef/ef6/modeling/designer/workflows/database-first

  • Related