score:2

Accepted answer

have a look at implementing the unit of work pattern so that you can share a context instance across repositories.

there are many examples on the web, e.g. http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application


Related Query

More Query from same tag