how can i set grandchild biz object

how can i set grandchild biz object

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


sntslm posted on Thursday, August 23, 2007

hi,everyone
   The PTracker example show us the parent/child relation data object with CSLA.Net.
How can i set the parent/child/grandchild type relation data object in class?


thank's a lot


triplea replied on Thursday, August 23, 2007

Download this example: http://www.lhotka.net/Article.aspx?area=4&id=7fbb619a-ba81-4157-b434-8756b68ccbd0

It will show you how to load grandchildren as well as different ways of doing so.

 

 

sntslm replied on Thursday, August 23, 2007

Thank you triplea,I have download the sample!THAT IS WHAT I WANT!

sntslm replied on Thursday, August 23, 2007

After study the DeepData project,now my Windows Form can run with parent/child/grandchild UI .
But it show some exception like "EDIT LEVEL MISMATCH COPYSTATE",
When I chang the csla version to 3.0.2,the exception is gone.
It's very cool.

triplea replied on Friday, August 24, 2007

I hadn't had the chance to play around with CSLA 3.0.2 but I know that some changes were made in the N-Level undo functionality to make it more robust (or something like that). Probably some issues were addressed there so if you don't mind using v3 of CSLA then just stick to using it.

ajj3085 replied on Friday, August 24, 2007

That's correct; in this case, the exception helps you point out that you're not doing databinding correctly.  Check the latest project tracker example for how the databinding needs to be done.  There's a lot to it, but what needs to be done is pretty clear.

sntslm replied on Friday, August 24, 2007

Maybe I do something wrong with the databinding,but in csla 3.0.2,the exception is disaapeared!So,now I use the new version of csla!
Today I will check the Insert/Update/Delete function of my new biz objects.

Copyright (c) Marimer LLC