how to dynamically break NHibernation cascade

Posted by Joe Black on Stack Overflow See other posts from Stack Overflow or by Joe Black
Published on 2010-03-23T12:20:49Z Indexed on 2010/03/23 12:23 UTC
Read the original article Hit count: 242

Filed under:

The NHibernate cascade setting in the entity mapping is static. Is there anyway to dynamically disable the "cascade" setting in code to avoid expensive cascade operation in NHiberate during a bulky data transaction? We do not want to use stored procedures or native SQL because we need to have the entity changes captured by NHibernate (audit).

© Stack Overflow or respective owner

Related posts about nhibernate