In my backend service I use unit of work pattern. I was wondering if I\'m missing something related to disposing objects.
First, this is the code I have so far, which w
Whenever you use something that implements IDisposable you should Dispose it as soon as you don't need it any more. If you use it as a field in a class, implement IDisposable in that class and iterate this process.
PS: If you turn on Code Analysis like this:
you will get some warnings pointing you to this for free :D