Recursive or hierarchical queries using EF Code First and Migrations

This sample demonstrates how you could implement recursive or hierarchical queries using EF Code First for a self-referencing table or entity. You can then query an entity for all its descendents or all its ancestors.

C# (1.0 MB)
 
 
 
 
 
(2)
2,859 times
Add to favorites
12/19/2011
E-mail Twitter del.icio.us Digg Facebook