VS 2015 ASP.NET Web API (EF6) & Xamarin Enable-Migrations fails

前端 未结 2 1670
礼貌的吻别
礼貌的吻别 2021-02-18 23:39

I\'m developing a project that will use ASP.NET Web API as the data service, and a Xamarin portable app as client.

I\'m trying to enable migrations in the web app, but I

2条回答
  •  甜味超标
    2021-02-19 00:22

    Well according to this (tested and works), the only way to enable migrations in aspnetcore+ef6 project, is to have the DbContext impl in an external full .NET class library, plus adding a dummy start up project.
    Sucks but works.

提交回复
热议问题