Child Edit Level problem csla 3.6

Child Edit Level problem csla 3.6

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


Dexter posted on Thursday, February 05, 2009

Hi

I am  using CSLA 3.6 for my business objects, with a winforms client that usesDataBinding.

I am currently have an object hierarchy that has a structure as follows

Rule - (Root business base object)

   RuleSetting (Child business base object) (represents a group of settings to be recorded at a point in time)

         SettingParameters (child business list base object )

            SettingParameter (Child business base object)

My problem is as follows:

When i change a property on the RuleSetting child object, the rule settings edit level is not changed.

This in turn causes me problems when saving or cancelling. ( Undo Exception ).

I have followed the structure outlined in Project tracker, but to no avail.

Any help or ideas from you csla veterans would be greatfully received

 

Thanks

Dexter

 

 

 

RockfordLhotka replied on Thursday, February 05, 2009

Do you have a BindingSource control for your RuleSetting object? It is the BindingSource control that is responsible for invoking the appropriate IEditableObject methods as you interact with the object through binding.

Dexter replied on Friday, February 06, 2009

Thanks Rocky

That is what was missing.

When i dragged the parameters child node of the setting it automatically created a BindingSource component for me, but when i drag the setting child node it doesnt.

Like you mention in your 2005 book, every business object must have its own BindingSource control to manage the information of a single object or collection.

Thanks again

Dexter

Copyright (c) Marimer LLC