Some software currently being written has a requirement for the data model to be transactional, implementing CRUD operations. (get a copy of data, make changes, submit it atomically, get fault messages for fai开发者_如何学JAVAlures, etc.)
Is there a well documented design pattern for something like this? Maybe a library?
NOTE: I'm using C#/.NET 4.0
PLEASE NOTE, my data model is POCO! not SQL or anything.
Use an ORM like Entity Framework, nHibernate etc
They have built in change tracking system and implement "Unit of Work" pattern(single transaction)
精彩评论