Skip to content

Useless Microsoft.EntityFrameworkCore.Relational dependency ? #145

Closed

Description

@nvierge

Hi,

I noticed that MockQueryable.EntityFrameworkCore currently references Microsoft.EntityFrameworkCore.Relational directly.

In my project, this creates dependency resolution conflicts when using newer EF Core versions. Since Microsoft.EntityFrameworkCore.Relational is usually brought transitively by the actual EF Core provider used by the consuming project, having it referenced directly here seems unnecessary.

I also checked locally, and the project still compiles successfully after removing this dependency.

Would you be open to removing the explicit Microsoft.EntityFrameworkCore.Relational package reference from MockQueryable.EntityFrameworkCore?

This would make the package easier to consume in projects using different or newer EF Core provider versions, while keeping the dependency surface smaller.

Thanks!

Activity

  1. ramantsitou commented on Sep 13, 2026

    @ramantsitou
    Owner

    Hi @nvierge good point. Indeed Microsoft.EntityFrameworkCore.Relational seems to be unnecessary anymore.

  2. self-assigned this
    on Sep 13, 2026
  3. added a commit that references this issue on Sep 13, 2026
  4. ramantsitou commented on Sep 13, 2026

    @ramantsitou
    Owner

    Added to version 10.0.12

  5. added a commit that references this issue on Sep 13, 2026
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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions