CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum


CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • Browse Site by Tags

    Showing related tags and posts across the entire site.
    • DataPortal.Update Failed on Server

      I have one Project that holds the Web & Desktop application (using VB ) In desktop app i am using a DataPortal.Update Method to update my Form Data, it works fine on my Local Machine................... but when i Deployed the project it is giving error on that Method. Any help would really be appreaciated...
      Posted to CSLA .NET discussion by Moed Ijaz on Tue, Oct 28 2014
    • Child_DeleteSelf() not called from parent

      I have a parent object that inherits from BusinessBase and a child object that inherits from BusinessBase. The child is an object contained within the parent. The child object is a regular business object. It is NOT a list. All my child data portal methods (e.g. Child_Create(), Child_Insert(), Child_Fetch...
      Posted to CSLA .NET discussion by sguolla on Tue, Aug 20 2013
    • Rule in child object using properties in parent object

      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...
      Posted to CSLA .NET discussion by correodemarques on Mon, May 20 2013
    • Re: MVVM and Child Objects

      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...
      Posted to CSLA .NET discussion by Killian35 on Wed, Jun 27 2012
    • parent-child relationships.

      How to write the FetchChildren if more than 3 levels of children exists? Plz give me some sample code.
      Posted to CSLA .NET discussion by Ann on Mon, Apr 23 2012
    • Execute Business rule on child object When Parent property has change.

      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...
      Posted to CSLA .NET discussion by Marsh on Mon, Mar 12 2012
    • Parent does not update after child has changed

      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...
      Posted to CSLA .NET discussion by ksavoie on Tue, Feb 7 2012
    • Determing which object should be the root object in a graph. Any guidleines?

      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...
      Posted to CSLA .NET discussion by pbusch on Mon, Jan 30 2012
    • Delete parent (root) when last child deleted.

      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...
      Posted to CSLA .NET discussion by Phil S on Mon, Jan 16 2012
    • Implementing Objects as Root or Child within hierarchical structures?

      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; ...
      Posted to CSLA .NET discussion by Alexander Becker on Thu, Oct 13 2011
    • Re: UndoChanges for deleted child objects

      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...
      Posted to CSLA .NET discussion by Codelines on Sun, Jul 31 2011
    • Re: Issue adding grandchild to child

      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...
      Posted to CSLA .NET discussion by JasonG on Thu, Jul 21 2011
    • OnChildChanged Not firing from TryUpdateModel call

      I am working with an MVC 3 application using CSLA 4.0, and I have set in the global.asax to use the CslaModelBinder. I have a top level object that derives from BusinessBase<T> (I will call it Labor), and that object has a child collection (LaborLogList) that derives from BusinessListBase<T>...
      Posted to CSLA .NET discussion by EbenK on Wed, Jul 20 2011
    • Re: Changing the order that items are saved in

      Mordy, CSLA does indeed deal with children by first deleting and then inserting, this is the behaviour coded into the ChildDataPortal. If you want to take full control of the save behaviour then perhaps not using the ChildDataPortal is the answer. By not using the ChildDataPortal I mean don't call...
      Posted to CSLA .NET discussion by Chattererman on Mon, Jul 4 2011
    • What's the best way to make a parent valid that has an InValid child that is marked for deletion?

      What is the best way to make a parent valid that has an InValid child that is marked for deletion? I have a parent that has an optional child object object. The child object is not valid causing the parent to not be valid. Based on some criteria in the parent's OnChildChanged the child is marked...
      Posted to CSLA .NET discussion by JackMetcalfe on Wed, Jun 29 2011
    • Problem while saving the child in WPF

      DataPortal.Update failed (Csla.DataPortalException: ChildDataPortal.Update failed on the server ---> Csla.Reflection.CallMethodException: Child_Update method call failed ---> Csla.DataPortalException: ChildDataPortal.Update failed on the server ---> Csla.Reflection.CallMethodException: Child_Update...
      Posted to CSLA .NET discussion by Barjinder Singh on Mon, Jun 20 2011
    • How to set child property into null value when the root object is initialize

      HI All, please someone tell me how to set child property into null value when the root object is initialize... i need this because of my specific business case, i have a parent object that contain a lot of editable child property inside, and sometimes user can fill in some of the child information (not...
      Posted to CSLA .NET discussion by sutono on Thu, Jun 16 2011
    • Copy / Duplicate child BO

      I've been ask by my client to add a "duplicate" function to my windows form application in VB.NET 2005, using CSLA 2. I'm looked into the copy of the object. I tried to use the following code, but it's not doing what I need. Public Shared Function NewCost(ByVal oldCost As Customer...
      Posted to CSLA .NET discussion by ksavoie on Thu, May 19 2011
    • CSLA Entity Framework 4.1 Code First

      Hi, I'm trying to make this work, but I haven't got it correctly, I'm using my CSLA entities to create my database with Entity Framework 4.1. But I'm having a problem with the declaration and managing of child objects. I can't seem to retrieve my entities 'Maestro' and I don't...
      Posted to CSLA .NET discussion by sergioadh on Mon, May 16 2011
    • One Child Object to be used on Many Parent Objects

      Hi Experts, i've got problems on designing child object. As you see that i got a child object that is going to be used by many parent objects. This is my example code public class ParentA : BusinessBase<ParentA> { private static PropertyInfo<ChildList> _TablesProperty = RegisterProperty<ChildList>...
      Posted to CSLA .NET discussion by sutono on Mon, Mar 7 2011
    Page 1 of 1 (20 items)

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems