Get SQL file for specific migration in Entity Framework 6 C#

前端 未结 4 641
滥情空心
滥情空心 2020-12-28 20:32

In Entity Framework 6, I need to get the SQL script for specific migration file and I already updated the database. I found that in update-database command I ca

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-28 20:56

    You can run the following command from Package manager console. It will generate a temporary file and will open it in VS:

    Script-Migration
    

提交回复
热议问题