604 Views
NHibernate has no support for hierarchical queries. To get all descendents of a tree node, we have to do a recursive N+1 query. But by using Common Table Expressions (CTE) we can solve this very elegantly.
0 comments
Join in on a hand-picked round up of the best .NET articles every day.
Curated by our Moderators and Voted up by our Community. Free.
NHibernate has no support for hierarchical queries. To get all descendents of a tree node, we have to do a recursive N+1 query. But by using Common Table Expressions (CTE) we can solve this very elegantly.