阅读背景:

在持久化之前使用NHibernate确定哪些字段已更新(用于验证目的)

来源:互联网 

Prior to persisting updates to my business entities, I need to perform validation checks to determine which properties have been changed. For example, certain fields can only be updated when the "Status" property has a particular value. E.g. when an Order entity has a Status of finalized, only the notes (string) field can be updated. Is this sort of thing possible using NHibernate, or should I be tracking the changes myself in the Business entities?Prior to persisting updates to my business enti




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: