开发者

How can I expose my data model in a transactional form?

开发者 https://www.devze.com 2023-04-08 16:46 出处:网络
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 message

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消