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

后端 未结 4 1607
臣服心动
臣服心动 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:12

    I have managed to get round this by creating an old .csproj project which the Enable-Migrations command works. The only difference is that instead of having a separate copy of the files, i have added them all by reference, using the "Add By Link" option when adding an existing file.

    Now i can add migrations etc and change the files as needed, and these changes will automatically reflect in my .xproj as it is the same files.

提交回复
热议问题