I\'ve faced some troubles with context in EF in ASP.MVC2.
I thought that best way to improve some operation on DataBase i\'ve created Repository. My repo class adds,
A context is a unit of work, so you want one per web request.
Therefore, you should use constructor injection (i.e., a constructor argument) to supply a single context for all repositories, and dispose it at the end of the request.
Most DI frameworks will do this automatically.