Monday, April 04, 2011

Hi,

I read a great post in the ADO.NET team blog in regards using the new EF 4 as a Unit of Work design pattern.

The main idea under this solution is to maintain all data manipulations against the DataBase easily and transactional, by encapsulating all data manipulation on POCO objects under a single DataContext and a single Save method.

This mechanism is usually recommended when working with asp.net MVC patterns, which each of the views is working with its specific controller that communicates with its model that implemented as a Repository pattern that exposes an interface of all methods signatures.

You can impress the post here.

Posted by: Eran Nachum (c)
Post Date: 4/4/2011 8:16:00 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | | Trackback   #