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

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

    In asp.net 5 project you have to use entity framework 7 and use the ef migration command from command line.

    I just done a recap here How can I manage EF 6 migrations in visual studio 2015?

提交回复
热议问题