Skip to content

IDISP004 false positive for EfCore's GetDbConnection #573

Open
@Bouke

Description

@Bouke

IDISP004 is triggered on calls to GetDbConnection(). However we must not dispose the returned IDisposable, as per the documentation:

This connection should not be disposed if it was created by Entity Framework.

image

Metadata

Metadata

Assignees

No one assigned

    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