开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜