Options

Unable to execute Update-Database -Script -Source $InitialDatabase in package manager console

Hi,

I have .Net Core project and i am trying to execute this command in Package manager console

"Update-Database -Script -Source $InitialDatabase"

But i get the below error

Update-Database : A parameter cannot be found that matches parameter name 'Script'.

At line:1 char:17

+ Update-Database -Script -SourceMigration: $InitialDatabase -TargetMig ...

+ ~~~~~~~

+ CategoryInfo : InvalidArgument: (:) [Update-Database], ParameterBindingException

Answers

Sign In or Register to comment.