Skip to content

Migrations: Get active provider #2258

Closed
Closed

Description

@bricelam

The idea being that you could then write something like this in your migration (or migration builder extension methods):

if (migrationBuilder.ActiveProvider == "SqlServer")
{
    // SQL Server-specific stuff here
}

Activity

  1. added this to the 7.0.0 milestone on May 27, 2015
  2. added and removed on Jul 1, 2015
  3. bricelam commented on Sep 4, 2015

    @bricelam
    ContributorAuthor

    Marking for re-triage. We may want to enable something to unblock this scenario before RTM. One way might be to make MigrationBuilder an IAccessor<IServiceProvider>.

  4. removed this from the 7.0.0 milestone on Sep 4, 2015
  5. added this to the 7.0.0 milestone on Sep 11, 2015
  6. modified the milestones: , 7.0.0 on Sep 16, 2015
  7. modified the milestones: , 1.0.0 on Oct 15, 2022
  8. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions