Cannot bind argument to parameter Path because it is null. Entity framework Error



Created: 07/11/2019 11:23:00 a.m.






Cannot bind argument to parameter 'Path' because it is null. Entity framework Error

EF6
Visual Studio 2019


Package manager Console Message:

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


Solution:
Just "Set as StartUp Project" in Visual Studio solution explorer, your project where you have your Context created, the same where you installed Entity Framework. And run "enable-migrations" from the console again. Thats it.



Comments:


Go to Comments