Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDISP004 false positive for EfCore's GetDbConnection #573

Open
Bouke opened this issue Sep 13, 2024 · 0 comments
Open

IDISP004 false positive for EfCore's GetDbConnection #573

Bouke opened this issue Sep 13, 2024 · 0 comments

Comments

@Bouke
Copy link
Contributor

Bouke commented Sep 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant