Я пытаюсь добавить миграции из существующих моделей в мое веб-приложение ASP.NET Core 1.0.
Когда я набираю Add-Migration
, я получаю следующий результат. Я использую VS 2015 Community и консоль диспетчера пакетов Nuget для выполнения команд в Windows 7. Ранее я обновил PowerShell (с версии 2.0 до версии 4.0). Я не могу понять эту ошибку, поэтому, если кто-то может объяснить, что происходит, я был бы очень признателен.
PM> Enable-Migrations
Enable-Migrations is obsolete. Use Add-Migration to start using Migrations.
PM> Add-Migration
cmdlet Add-Migration at command pipeline position 1
Supply values for the following parameters:
Name: InitMigration
The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object.