Does anyone have any good links about a practical example of Unit of Work pattern with LINQ to SQL
The only resource that I know off is the code for Suteki Shop, an ASP.Net MVC application which uses LINQ To SQL.
One change they carried out recently was to implement the Unit of work pattern in all the controllers.
Rick Strahl has some good stuff on it.
Ritesh Rao implements it over nhibernate, entity framework and linq to sql in his ncommon framework:
http://www.codeinsanity.com/2008/09/unit-of-work-pattern.html
来源:https://stackoverflow.com/questions/974983/unit-of-work-design-pattern