Skip to content

Show how to use --startup-project #294

Closed

Description

@VahidN

A lot of developers don't know how to use the --startup-project parameter for moving their DbContext to another assembly and then run the migrations. They are still creating static void main in other assemblies which is not necessary if --startup-project is specified.

dotnet ef  --configuration Release --startup-project ../TestPrj/ migrations add V1
dotnet ef  --configuration Release --startup-project ../TestPrj/ database update

Activity

  1. rowanmiller commented on Feb 1, 2017

    @rowanmiller
    Contributor

    Consolidating with #204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions