Hi,
I am using NHibernate 1.0.2 with existing database schema (Sybase) that has triggers. While doing a simple update operation that should modify ONE row I get the following exception message -
[NHibernate.HibernateException] {NHibernate.HibernateException}
{"SQL insert, update or delete failed (expected affected row count: 1, actual affected row count: 25). Possible causes: the row was modified or deleted by another user, or a trigger is reporting misleading row count." }
In this case there is a trigger that is indeed modifying 25 rows. I cannot disable/remove this trigger - and it does need to do its work and modify 25 rows. So how do I use NHibernate to do update with this database?
Having checked the NHibernate source - EntityPersister.Update() always checks to make sure that the number of expected updated rows matches the actual updated rows. So how do I use NHibernate in this situation?
Thanks
AbiMan
|