P
Peter Thorton
Hello,
I am trying to figure out how to write a LINQ query to a dataset to give
me a list of all x's parents recursively.
My table structure is:
id int
parent_id int (dbnull if the root node)
name string
I can easily get x's direct parents:
var tree = from parent in table where dataset.table.parent_id ==
parent.id
select parent.name;
I need all of x's grandparents, great grandparents, etc...
Thank you,
I am trying to figure out how to write a LINQ query to a dataset to give
me a list of all x's parents recursively.
My table structure is:
id int
parent_id int (dbnull if the root node)
name string
I can easily get x's direct parents:
var tree = from parent in table where dataset.table.parent_id ==
parent.id
select parent.name;
I need all of x's grandparents, great grandparents, etc...
Thank you,