Entity Framework Core - Migration - No Parameterless Constructor Defined for this Object

前端 未结 4 1781
野的像风
野的像风 2021-01-11 22:19

I am working with the latest .Net Core and EF Core in Visual Studio 2017. I have created a model and it was working great. I have since made some modifications and am gett

4条回答
  •  情深已故
    2021-01-11 23:06

    If you have a separate project for context. set a startup project with the target project

    dotnet ef migrations add InitialCreate -s .\src\WebUI\  -p .\src\Infrastructure\ --verbose
    

提交回复
热议问题