I'm wondering what is the best way to select from a nested hierarchy of objects?
Assume that we a class MyRecursiveObject
as below:
public class MyRecursiveObject
{
public Int64 Id { get; set; }
public MyRecursiveObject Parent { get; set; }
}
How can I reach to maximum performance while selecting all parent Ids of an instance of MyRecursiveObject?
Any suggestion is highly appreciated.