Can not safely call ReadOnlyDapperRepository.Dispose multiple times
terrykyee opened this issue · comments
terrykyee commented
AutoFac expects classes to be able to be disposed of multiple times, so using DapperRepository with AutoFac causes NullReferenceExceptions when AutoFac goes to dispose of objects. There should be a protection around the call to Connect.Dispose to check for a null Connection to protect against this.
Harshit Gindra commented
Serge K commented
@harshitgindra Thank you!
Published in 1.16.1