This question is locked. New answers and comments are not allowed.
I have a bunch of nested objects...so ...
Class can itself contain a list of Class objects to create a hierarchy...
Ok, so I do
Class class1 = new Class();
class1.Items.Add(new Class());
class1.Items.Add(new Class());
So "class1" contains two child class objects and those get persisted to the database.
Is there any way inside those two class objects to figure out what the parent object is?
Does that make sense?
Class can itself contain a list of Class objects to create a hierarchy...
Ok, so I do
Class class1 = new Class();
class1.Items.Add(new Class());
class1.Items.Add(new Class());
So "class1" contains two child class objects and those get persisted to the database.
Is there any way inside those two class objects to figure out what the parent object is?
Does that make sense?