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.
    • ValidationComplete, IsBusy, Async Rules

      I am running into a strange result. I have a business object with async rules. I am running unit tests to test basic crud operations. Update works fine. Insert gives me the Cannot save while IsBusy error. It seems IsBusy remains true even after the ValidationComplete event fires. Any ideas? Here is the...
      Posted to CSLA .NET discussion by lacota on Sun, Nov 16 2014
    • Handy fluent-like quick rule to speed up writing your light-weight rules

      Hi all We've spend a considerable amount of time bringing a CSLA 3.8 project into the present with CSLA 4.5. Our biggest challenge was the legacy rules, and while "converting" them is straight forward enough, it's a bit tedious and verbose (mostly for the small and simple ones). PS...
      Posted to CSLA .NET discussion by Jaans on Fri, May 30 2014
    • How to handle business rules where on property changes the value of another in Webforms

      Here's my scenario, I have a boolean property that when checked should clear/set defaults (pulled from DB) for a number of other properties in the BO. My application is a webforms app, so essentially all of the properties are set in a batch upon postback. I have already seen this post regarding clearing...
      Posted to CSLA .NET discussion by mtavares on Thu, Aug 15 2013
    • Changes to To BusinessRules in 4.3 (or 4.2)?

      Hello, I recently upgraded my company's framework from 4.1 to 4.3. We make pretty extensive use of BusinessRules. We have several different named sets of rules that run in different situations. So in our extension of BusinessBase we have some methods that do stuff like this: void CheckValidationRules...
      Posted to CSLA .NET discussion by jwadecsee on Mon, Oct 22 2012
    • Business operation/state aware rules

      Hi, I would like to solve the following problem. As stated in subject, I want to define business rules with the ability to take in mind the context or condition by which they behave once as error and once as warning. The context/condition may represent business state or business operation which I would...
      Posted to CSLA .NET discussion by Miroslav Galajda on Fri, Jun 8 2012
    • Add Business Rules for Business List Base child property

      Hi, I Have object graphs with parent-child relationship. There are more than two children objects. Parent object is BusinessBase object where other child objects are BusinessListBase objects. Now I want to add validation for child objects that if not a single child objects is not added, Then parent objects...
      Posted to CSLA .NET discussion by Marsh on Wed, May 16 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
    • AddOutValue not working if rule triggered by Dependency

      The AddOutValue in the following rule correctly updates the TextProperty when the user changes the String1Property however it does not update the TextProperty when the user changes the String2Property or the String3Property. The Debug line does output the correct buf string with every user change. #region...
      Posted to CSLA .NET discussion by Russ Blair on Mon, Oct 3 2011
    • Async Rule causes Can not change a read-only list or collection error

      I am getting the “Can not change a read-only list or collection” error on the base.DataPortal_Create(); line of the following method. [ RunLocal ] protected void DataPortal_Create( int userApplicationFK) { using (BypassPropertyChecks) { UserApplicationPK = userApplicationFK; PasswordRules...
      Posted to CSLA .NET discussion by Russ Blair on Wed, Sep 14 2011
    • EitherOrRequired rule

      Hi Something simple which I cannot get to work :-) I need a rule that will examine two properties and error if both are blank. I have created this rule so it takes two IPropertInfo objects. public class EitherHaveValue : CommonBusinessRule { IPropertyInfo SecondaryProperty { get ; set ;} /// <summary>...
      Posted to CSLA .NET discussion by Kevin Fairclough on Thu, Aug 25 2011
    • Suspicious Business Rule behavior

      Technologies – CSLA 4/Silverlight 4 Here is my scenario. Object A (BusinessBase) | ----------- PropertyB (typeof(Boolean)) ----------- PropertyC (typeof(ChildListC) BusinessListBase) When property B is set to true, I require C to contain at least 1 child. To implement this, 1) I implemented a rule...
      Posted to CSLA .NET discussion by Ranjini on Tue, Jul 19 2011
    • BusinessRule not Executing

      Hi All, We have constructed a generic class project to house common BusinessRules. In particular we have a BusinessRule to ensure a To date always follows a From date (from 2 DateTimePicker controls). I have placed break points on the execute methods but the rule is never fired. In the AddBusinessRules...
      Posted to CSLA .NET discussion by Phlar on Thu, Jul 14 2011
    • CSLA 4.1 BusinessRule - AffectedProperty not Dirty according to FieldManager

      Hi all Unless my expectation of what should happen is wrong, I have a potential bug. I have a business rule that is a mutator (i.e. changes the value of properties), specifically I have the rule trigger on the primary property called PropertyA. In the rule I let CSLA know that there will be an affected...
      Posted to CSLA .NET discussion by Jaans on Thu, Jul 7 2011
    • BusinessRule that interact with Collections

      Hello, I have a business rule on a parent object that requires traversing its child collection objects to determine if the rule is broken or not. So the first thing I tried to do was to stick with the pattern of using the “InputProperties” functionality to store the values that I need to...
      Posted to CSLA .NET discussion by Rene Elizondo on Thu, Jun 9 2011

    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