I'm new to ASP.NET and am trying to set up a webAPI c# application with entity framework. But when I try to run the Enable-Migrations command on nuget-package-manager console, I'm getting the following error:
"Cannot bind argument to parameter 'Path' because it is null"
enable-migrations : Cannot bind argument to parameter 'Path' because it is
null.
At line:1 char:1
+ enable-migrations -ContextTypeName SchoolDBContext
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Enable-Migrations],
ParameterBindingValidationException
+ FullyQualifiedErrorId :
ParameterArgumentValidationErrorNullNotAllowed,Enable-Migrations
I've tried uninstalling and re-installing entity framework but it still gives the same error.
How can I fix this?
I had this error when using EntityFramework 6.3.0, downgrading it to 6.2.0 fix my issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With