CSLA 4.0 and Child / Parent / GrandParent Key values

CSLA 4.0 and Child / Parent / GrandParent Key values

Old forum URL: forums.lhotka.net/forums/t/11769.aspx


TScorpio posted on Friday, January 04, 2013

 

I understand some the basics of CSLA but not all of its facets. We are using CSLA 4.0 with Visual basic 2010. The structure we’re building is this:

 

We have an editable child list of job objects.

Each job object contains job key values plus an editable child list of areas.

Each area object contains area key values plus an editable child list of tasks.

Each task object contains user data entered values.

 

When working with tasks we need to be able to access its parent area and grandparent job key values. (For popup screens, saving, etc)

 

Casting the tasks parent property lets me access it’s list object, but I can’t jump any higher in the structure (since the list object doesn’t have a parent property for accessing the area child object that the list is contained within)

 

Is there a preferred or standard way of making such data accessible? We really don't want to copy the keys all through the structure....

 

Thanks!

 

Copyright (c) Marimer LLC