Re:How to Make Websites That Will Require Lots of Your Time ...
by krawcu on Tuesday July 29, 2025 @03:01AM
(#44720012)
i think you should just create another migration with alter table that adds that column
Re:How to Make Websites That Will Require Lots of Your Time ...
by indigo945 on Tuesday July 29, 2025 @03:03AM
(#44720022)
You can use EF by writing the migrations yourself ("database first"). Also, whatever problem you have there seems to be easily fixed either by a better understanding of how EF's code generation works, or by more aggressive use of version control.
For example, I'm working on a project right now where I have to do a database migration. The project uses c# entity framework, I made a migration to create a table, realized I forgot a column, deleted the table and tried to start from scratch. For whatever reason, entity framework refuses to let go of the memory of the original table and will create migrations to restore the original table. I hate this so much.