Great Example of Building Your Own IDataContext

This one is just for me, so I don’t forget where I read this article:

This is a really great read on building your own IDataContext.

I’m toying around with the idea of changing it to just saying IUnitOfWork instead, so I can use the idea as a way to wrap LINQ2SQL contexts, as well as NHibernate sessions, etc.

Linq to Sql, Programming Against an Interface and the Repository Pattern