IDISP004 false positive for EfCore's GetDbConnection
Bouke opened this issue · 0 comments
Bouke commented
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.