Skip to content

Document simple patterns for custom DDL in migrations with examples #694

Closed

Description

@divega

The section at https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/operations#using-migrationbuildersql shows a very nice pattern that uses MigrationsBuilder.Sql inside an extension method to reuse part of the logic.

However today I just needed to explain to a customer how to simply call Sql() to maintain stored procedures in migrations and it seems we don't have any basic examples of this in our docs, or even any example that shows that migrations can be customized.

Activity

  1. added this to the Backlog milestone on Jun 13, 2018
  2. modified the milestones: Backlog, 5.0.0 on Jan 15, 2020
  3. ajcvickers commented on Feb 3, 2020

    @ajcvickers
    Contributor

    See discussion in dotnet/efcore#19740

  4. added a commit that references this issue on Jun 29, 2020
    2c06834
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions