Using Common Table Expressions for hierarchical data in NHibernate

added by steele27
5/13/2011 10:23:07 AM

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