EF Code First DbMigration without nuget

前端 未结 6 902
长发绾君心
长发绾君心 2020-12-16 00:27

How to migrate DB without nuget? It is not possible to use Visual Studio with nuget in production environment. Currently, many examples only teach us to use Visual Studio wi

6条回答
  •  误落风尘
    2020-12-16 01:00

    Here are the options:

    1. Use the migrate.exe command line tool that ships in our NuGet package.
    2. Use the MigrateDatabaseToLatestVersion initializer as others have described.
    3. Use the runtime API available from the DbMigrator class.

提交回复
热议问题