Does anyone have any good links on a practical example of a Unit of Work template with LINQ to SQL
The only resource I know is the code for Suteki Shop , an ASP.Net MVC application that uses LINQ To SQL.
One of the changes that they recently made was to implement a block of work in all controllers.
Rick Strahl has some good things on it .
Ritesh Rao implements it over nhibernate, an entity framework and linq for sql in its usual structure:
http://www.codeinsanity.com/2008/09/unit-of-work-pattern.html
http://code.google.com/p/ncommon/