Is there any documentation on what (if any) ISession methods can legally be invoked from within the IInterceptor callbacks? For example, can I execute a query from within PreFlush or OnFlushDirty? Can I access a lazy proxy or collection on an entity that is being flushed?
It would seem that doing these kinds of things from within the interceptor would mess up the session. Is this known to be a problem in practice?
Also, is there a best practice as for how to abort a flush from the interceptor? For example, throwing an exception from PreFlush?
|