Enable-Migrations installation error

前端 未结 5 1334
春和景丽
春和景丽 2020-12-06 10:06

I\'m running into a problem when enabling migrations on one of my projects. I execute Enable-Migrations command from the Nuget Console and receive an err

5条回答
  •  半阙折子戏
    2020-12-06 10:41

    Try to specify content type name:

    Enable-Migrations -ContextTypeName Web.Infrastructure.ContextName

    If you have several projects in the solution, you have to specify which one to apply. (dropdown "DefaultProject" in the top of console).

提交回复
热议问题