TIL

Today I Learned


Project maintained by gushwell Hosted on GitHub Pages — Theme by mattgraham

複数のDBがある場合のMigration方法

–context オプションを使う。

dotnet ef migrations add initialCreate --context myDbContext

dotnet ef database update --context myDbContext

DBの削除は、

dotnet ef database drop --context myDbContext

マイグレーションをやり直すには、(DB削除後に実行)

dotnet ef migrations remove --context myDbContext