dotnet efのインストール
dotnet tool install --global dotnet-efdotnet efのバージョン確認
dotnet efマイグレーションファイルの作成
対象のプロジェクトのフォルダで実行。
dotnet ef migrations add [マイグレーションファイル名]dbcontextから接続先等の情報を取得
実行すると、接続先のDB名や、Data sorce、バージョンなど確認できる。
dotnet ef dbcontext infoテーブルの更新
マイグレーションファイルを基にして、テーブルを作成・更新する。
dotnet ef database updateデータベースの削除
データベースの削除を行います。
dotnet ef database drop
