0

I have a project with ADO.NET Entity Framework in C# and I need it not to delete the manually created tables in the database. When I run the project, I always get deleted tables that were added directly to the SQL database.

Is there a way to prevent those tables from being deleted?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Milton
  • 1
  • Tag the EF version? Mine doesn't delete any tables, post the code where this is triggered. – mxmissile Mar 29 '23 at 23:11
  • https://stackoverflow.com/questions/22038924/how-to-exclude-one-table-from-automatic-code-first-migrations-in-the-entity-fram – Dai Mar 30 '23 at 04:09

0 Answers0