Skip to content

Analyzer to warn against accidental usage of AddEntityFrameworkProvider #25455

Description

@roji

Following #25451, we can warn when AddEntityFrameworkProvider is called from user code instead of AddProvider. Providers would disable this diagnostic.

Activity

  1. ajcvickers commented on Aug 9, 2021

    @ajcvickers
    Contributor

    It is necessary to call these methods from user code when taking control of the internal service provider. Most people should not be doing that, but there are times when it makes sense.

  2. roji commented on Aug 9, 2021

    @roji
    MemberAuthor

    @ajcvickers assuming the legitimate cases are rare enough to warrant hiding these methods from Intellisense, it could make sense to also have a diagnostic (which users can suppress). But if you feel this is bad for some reason we can close.

  3. added this to the Backlog milestone on Aug 10, 2021
  4. 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

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions