The term “Add-Migration” is not recognized

后端 未结 18 2343
情深已故
情深已故 2020-12-07 23:51

I\'m using this MSDN Tutorial to run in VS2015 the command PM> Add-Migration MyFirstMigration -context BloggingContext that ran yesterday successfully but to

18条回答
  •  孤街浪徒
    2020-12-08 00:33

    In my case I added dependency via Nuget:

    Microsoft.EntityFrameworkCore.Tools

    And then run via Package Manager Console:

    add-migration Initial -Context "ContextName" -StartupProject "EntryProject.Name" -Project "MigrationProject.Name"
    

提交回复
热议问题