0
votes

I was following a tutorial about the asp.net-mvc . I have been stuck in enable-migrations nuget package manager

I was first haunted by the enable-migrations cmd not found error so for that purpose I followed from the following link : Package Manager Console Enable-Migrations CommandNotFoundException only in a specific VS project

enable-migrations : Cannot bind argument to parameter 'Path' because it is null. At line:1 char:1 + enable-migrations + ~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Enable-Migrations], ParameterBindingValid ationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Enable-Migra tions

I did my best to find but did not found any answer on this . Can someone please help me on this matter ?

1
Your question has error on Entity Framework migration, not related to ASP.NET MVC and "Nuget Package Manager" at all. Also please update your question with more detail on the version of the EF nuget used, target .NET Framework version, and use correct tags. - Eriawan Kusumawardhono
I did edit my Post thanks - Muhammad Ali

1 Answers

0
votes

In order to enable the migrations with code first, a database must exist, try and build your application, add some data to the tables, re-build the application and try again