-
I have a rule in my children objects that uses some values from the parent object. The rule must be executed when any of those values in the parent changes. The rule also adds different error result messages depending of certain conditions. The options I have are: 1-Add the needed properties to the child...
-
I use MVVM when editing a child object from a list. My view model follows the same patterns as Rocky has suggested inheriting the Csla.Xaml.ViewModel class. I pass in both the child object and the root object into the constructor. Within the view model constructor I do a BeginEdit on the root and set...
-
How to write the FetchChildren if more than 3 levels of children exists? Plz give me some sample code.
-
I have parent root(Mater) object as BusinessBase which has BusinessListBase(ChildList) object as a child. Parent (BusinessBase) - Child List (BusinessListBase) - Child (BusinessBase) I have a custom business rule implemented in child object (BusinessBase of ChildList), which depends on parent root(Mater...
-
Hi We're using CSLA 2 with VB.Net 2005. I'm able to open a child record and update the child and the parent after the first save, but if a user changes something else, and wants to save again, the child gets updated but the parent doesn't, so it has a result of not updating the record in...
-
I frequently struggle with determing which object should be the root object in a group of related objects. As a result, I feel my object graphs and relationships end up being too large and complex and consequently not very performant. By the end of setting the class realtionships up in an application...
-
Hello, Using CSLA 3.8.1 here. I'm trying to work out how to accomplish the following. I think I've just been looking at it too long, maybe someone here can point me in the right direction. I have an editable root object, with a child collection, populated with child objects.. nothing special...
-
Hello, after reading the CSLA4 books I am not sure how to implement the following scenario: given the following classes to build up a simple contact management: class Contact { IEnumerable<ContactRelation> RelatedContacts; } class ContactRelation { string RelationType; Contact RelatedContact; ...
-
I think this could be addressed with a reference stack for each field/property used to reference an undoable object. CopyState will not only cascade for undoable objects but store their references in the reference stack. If an undoable object reference is removed, UndoChanges could restore that reference...
-
I havn't been able to find the source of this problem yet. But i didn't uncover another problem that is probably related. Changes to my Child ojects are not saving. I noticed that when i check my parent oject, the child that i just changed doesn't have the changes that i just made on the...