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.
Overwrite HQL-generation for FetchMany()
-
03-06-2022 - |
سؤال
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.
المحلول
لا تنتمي إلى StackOverflow