I'm building a dropbox -like application to store images.
I have a database table called Images:
ImageId [PK]
ParentImageId [FK]
Name
Path
I want to create a breadcrumb from the above structure lets say I have the following data:
Is it possible using LINQ to be able to create a breadcrumb that looks like (if I am at sub folder 2) :
Folder 1 > Sub Folder 1 > Sub Folder 2
How do I build a query to return the desired results? Any assistance would be of great help!