How to properly dispose the ObjectContext in a Repository and Unit of Work pattern?

I think you are doing things properly with regard to disposing the Context. The Sql Server Provider supports connection pooling, so what you're seeing after the end of the using(var uow = new UnitOfWork(connectionstring)) block is the connection in the pool For more information on connection pooling, see this article: msdn.microsoft.com/en-us/library/8xx3tyc....

I think you are doing things properly with regard to disposing the Context. The Sql Server Provider supports connection pooling, so what you're seeing after the end of the using(var uow = new UnitOfWork(connectionstring)) block is the connection in the pool. For more information on connection pooling, see this article: msdn.microsoft.com/en-us/library/8xx3tyc....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions