Hi all, I know how to use HqlGenerators for the below scenario:
query.Select(s => s.*CustomObjectMethod()*).ToList(); But I don't know how to use them for this scenario: query.Select(s => s).*CustomQueryMethod()*.ToList(); My specific case scenario is wanting to add "for read only with ur" to the generated DB2 SQL by stating: query.Select(s => s).*WithNoLock()*.ToList(); I understand that this scenario can be overcome using transaction level isolation settings, but due to the per request nature of our Unit of Work, I need for my colleagues to be able to specify at a query level that they need Uncommitted Read, rather than 'damning' the whole request to UR. I've trawled the web and dug through the NHibernate source for hours now but am at a complete loss as to how to achieve this. Any help would be greatly appreciated. Ideally, I don't want to have to edit NHibernate directly, instead relying on its extensibility features to ensure as much compatibility with future versions as possible. 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.
