Hi all,

I am familiar with how to implement the following scenario using 
HqlGenerators:

query.Select(s => s.CustomObjectMethod()).ToList();


But I need to be able to do the following:

query.CustomQueryMethod().ToList();


The specific scenario is wanting to be able to write:

query.*WithNoLock()*.ToList()


and have it add "for read only with ur" to the query.  I understand that 
this can be performed at a transaction isolation level or by using an 
Interceptor, but I'd rather not 'taint' all of the selects in the request's 
transaction for what should be incredibly rare and unavoidable scenarios 
for particular selects.  My ideal scenario is the one listed above, where 
by looking at the query you can see that it is specifically using UR.

I've trawled the internet and NHibernate's source for hours now, but am 
unable to come up with an elegant way to achieve this using NHibernate's 
extensibility features.

Any guidance would be greatly appreciated.

Thanks,

Steve

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to