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

前端 未结 4 663
滥情空心
滥情空心 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:38

    If you want to generate -Script for migration N, you specify -SourceMigration N-1 (previous migration) and -TargetMigration N

提交回复
热议问题