문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top