Quick access

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.