How to get number of delete using NHibernate IStatistics

Posted by epitka on Stack Overflow See other posts from Stack Overflow or by epitka
Published on 2010-06-16T14:59:10Z Indexed on 2010/06/16 15:02 UTC
Read the original article Hit count: 219

I am trying to get the number of delete statements issued during the session, so I enabled statistics generation and I got a reference to it through SessionFactory.Statistics. But I don't see a way to get the global number of deletes. I can get the statistics for the entity, but I have one many-to-many mapped relationship that does not materialize in an entity, everything is done through a table that is not mapped to an entity. Is there a way to get this number?

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about nhibernate-statistics