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

  • Question

  • 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





    I am following this article 

    https://documentation.red-gate.com/display/sca4/Work+with+Entity+Framework+CodeFirst+migrations#space-menu-link-content










    Monday, September 16, 2019 12:38 PM

All replies

  • Hi,

    Here I found the document about Script-Migration and Update-Database. Maybe you can refer to it.

    Script-Migration

    Update-Database

    Regards,

    Kyle


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, September 17, 2019 2:56 AM
    Moderator