Frage

I know that I can extend NHibernates HQL-generation to support new methods as described in this article. If I implement IRuntimeMethodHqlGenerator it will also work for generic methods.

But is there a way to overwrite NHibernate's default behavior for already supported methods? In this specific case I want to overwrite how NHibernate deals with calls to FetchMany().

Just hooking up a custom generator doesn't work as it is never called.

War es hilfreich?

Lösung

I'm not sure exactly what you're trying to accomplish, but you might want to have a look at the NHibernate Linq Inner Join Fetch provider project for guidance.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top