Base solution for your next web application
Open Closed

GetAll not working when UnitOfWork is disabled. #4486


User avatar
0
sparkyjr created

I am using repositories GetAll() method to fetch some data from the repository. But when I use [UnitOfWork(IsDisabled=true)] in controller and application service, GetAll() method is throwing an exception.

The exception that is thrown is "DbContext has been disposed."

Please suggest how to go about this issue.


1 Answer(s)