How to enable migrations (EF6) in an asp.net 5 project?

后端 未结 4 1749
臣服心动
臣服心动 2020-12-19 00:45

I created a new class library (package) project (prior to VS 2015 RC used the even worse name of asp.net class library to represent the data layer. Just to be clear this is

4条回答
  •  余生分开走
    2020-12-19 01:26

    Why does package manager think Enable-Migrations is invalid even though EF6 has been referenced?

    Because I assume and am quite sure that ASP.NET 5 projects don't invoke install and uninstall PowerShell scripts inside the packages which EF 6 package has to add the migration commands to package manager console. Your best luck is to try to integrate the command line tool (I believe it is called migrate.exe, not sure) inside the EF6 NuGet package.

提交回复
热议问题