Skip to content

Allow migrations configuration to be automatically be picked up from a cloned repo #20862

@ajcvickers

Description

@ajcvickers

I often want to use migrations after cloning a GitHub repo or downloading a VS solution in some other way. To do this I have to figure out which project is the startup, which project contains migrations, and possibly other settings. Instead I want that information to be carried with the VS solution. This would allow me to run, for example, dotnet ef migrations add One at the solution level and have it use the appropriate projects and other settings.

This could be done in one of several ways:

  • A config file at the solution level that EF reads
  • Support for generating and using "response files" automatically
  • Support for generating and using a well-known script automatically

This will also require documentation to promote this as a well-known pattern that becomes commonly used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions