Change data in migration Up method - Entity Framework

后端 未结 4 1491
一向
一向 2020-12-14 05:48

I have added a new property into my existing model. It\'s a bool property with default value true. There are existing data in this table and I would like to set one specific

4条回答
  •  余生分开走
    2020-12-14 06:18

    Writing DataMigrations for EF6 can be a chore. We put together a library I'm just open sourcing here for others to use, that adds in this long-promised, missing feature to EF6. Just write classes using regular EF queries etc.

    https://github.com/b9chris/Brass9.Data

提交回复
热议问题