We use an enterprise framework that we wrote to facilitate all sorts of company specific stuff that we do.
Within the framework, we provide a LINQ to SQL ORM to use when appropriate. All of this is based on the Microsoft MVC framework. On the MVC side, we new up a datacontext in our base controller. This allows us a full datacontext lifecycle, which is extremely useful for transactions.
One task that we're looking to accomplish is to provide Winforms support.
However, I'm banging my head against the wall trying to figure out an approach that would work in a similar fashion for Winforms.
Given that the MVC approach is pretty straight forward becase one page load represents a logical transaction, it's difficult to come up with a solution on the Winforms side.
Has anyone done anything similar or have any recommendations?