Skip to content

Tools: Better ConfigureDesignTimeServices entry point #5617

Closed

Description

@bricelam

Currently, if you want to configure design-time services (e.g. MigrationsCodeGenerator, DbContextWriter, EntityTypeWriter, etc.) you add a method named ConfigureDesignTimeServices to your Startup/Program/App class.

Instead, we should have a more structured approach similar to IDbContextFactory<>. We'll add an IDesignTimeServices interface. If there is an implementation of this interface in your startup assembly, we'll find it at design-time and use it to configure the design-time services.

Activity

  1. added this to the 1.0.1 milestone on Jun 6, 2016
  2. modified the milestones: Backlog, 1.1.0 on Jul 1, 2016
  3. modified the milestones: 1.1.0, Backlog on Sep 9, 2016
  4. self-assigned this
    on Sep 9, 2016
  5. modified the milestones: 1.0.2, on Oct 14, 2016
  6. divega commented on Oct 17, 2016

    @divega
    Contributor

    Reopening to take through patch release approval.

    @bricelam can you please put together a short paragraph explaining why we take this in 1.0.2?

    cc @Eilon

  7. reopened this on Oct 17, 2016
  8. bricelam commented on Oct 18, 2016

    @bricelam
    ContributorAuthor

    Here is the commit of we'd like to take in the 1.0.2 patch: 85929c2

  9. Eilon commented on Nov 1, 2016

    @Eilon
    Contributor

    This patch is approved, please ensure it is merged into the correct branch and building as part of the patch train.

  10. changed the title [-]Commands: Better ConfigureDesignTimeServices entry point[/-] [+]Tools: Better ConfigureDesignTimeServices entry point[/+] on Dec 12, 2016
  11. 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