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.
    • 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
    • Calculating Rules for two Dependend Properties

      CSLA Version 4.1 Hello ! I have two Properties: one called DeliveryWeek (LieferKW) and one called DeliveryDate (Liefertermin). Further i have two Rules which calculate a DeliveryDate (Friday of Week) from DeliveryWeek and one Rule that calculate a DeliveryWeek vom DeliveryDate. The User must can change...
      Posted to CSLA .NET discussion by ThiloS on Thu, Apr 25 2013
    • BrokenRulesCollection empty even though RuleContext shows otherwise

      I'm trying to work my way through a gateway rule. As I step through the Execute method of the Inner Rule , I can see the failure result added to the rule context. After being added, back in the gateway/outer rule I can then see that the RuleContext contains a count of 1 for the Results property....
      Posted to CSLA .NET discussion by Tim on Fri, Apr 5 2013
    • Rules called multiple times after 4.5 upgrade

      Hi! Our Silverlight 5 application's BOL has a couple of business objects with pretty deep hierarchy. Such as ProductEdit => SectionList => SectionEdit => FieldList => StepList => StepEdit =>SecuritySettingsList=>etc. Some validation rules defined on child level but other like...
      Posted to CSLA .NET discussion by mparsin on Wed, Feb 13 2013
    • Re: Business rules - adding InputProperties causes rules to run

      This is a featuire not a bug. In the simple case, the validity of the rule is determined by a single property. For example, a telephone number must have so many numeric digits; any other condition causes the rule to fail. But there are situations where several values must be inspected to establish the...
      Posted to CSLA .NET discussion by JonStonecash on Fri, Jun 22 2012
    • CSLA 4 MVC using Session Variable the rules and child changed event doesn't trigger

      I am using the latest CSLA.Net 4 and MVC 3. I save BOs in the session and when user enter information, I get hold of the BOs from session and update the object using TryUpdateModel in the controller. The problem I have is the broken rules doesn't trigger when I read back the BO from session. I mean...
      Posted to CSLA .NET discussion by divsalar on Thu, Apr 5 2012
    • IsBusy - How to tell why specifically the object is busy?

      I have many objects with several complex async business rules and I'm finding if there is an issue it's a bit maddening to try to figure out why IsBusy is stuck on a business object. Specifically if I call checkrules when loading from the db and isbusy get's "stuck" I have to comment...
      Posted to CSLA .NET discussion by JCardina on Wed, Mar 14 2012
    • CheckRules and lazy laoding problem related with ReadProperty

      Hi, I have lazy loading private field property registered like this: public static readonly PropertyInfo < Integration > IntegrationProperty = RegisterProperty< Integration >(p => p.Integration, "Integration" , RelationshipTypes .LazyLoad | RelationshipTypes .PrivateField); Now...
      Posted to CSLA .NET discussion by Guncho on Thu, Feb 2 2012
    • Re: Is Business Rule Serialize ?

      1. General rules should be independent class and BO specific rules is often better placed inside the actual business object. 2. Rules does not have to be serializable. BrokenRule (builtin class in Csla used in BrokenRulesCollection) is serializable so it can move between tiers just like any other child...
      Posted to CSLA .NET discussion by JonnyBee on Wed, Dec 7 2011
    • RuleContext ArguementOutOfRangeException

      Would it be possible to throw a different exception if you're trying to call AddXXXResult and the property isn't in the list of AffectedProperties? Something that would be clear without opening the Csla source would be great.
      Posted to CSLA .NET discussion by Andy on Tue, Oct 18 2011
    • InputProperties vs. AffectedProperties Inconsistency

      I'm just curious, why is InputPropertys set by newing up a list and setting the reference directly while for AffectedProperties you have to Add or AddRange?
      Posted to CSLA .NET discussion by Andy on Tue, Oct 18 2011
    • switchable mandatory fields in wpf

      On my WPF interface I have, amongst other things, a checkbox, and two textboxes. When the checkbox isn't checked then I would like the two checkboxes to be blank and disabled. Then if the user checks the checkbox, the two checkboxes will become editable. My question is, where do I put the logic for...
      Posted to CSLA .NET discussion by Daniel Morey on Fri, Sep 30 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
    • Csla 4.2 Rules Makeover

      Hi all, I have experienced some challenges with the rule engine and have been working on improvements for Csla 4.2 that I'd like to geed feedback on. Please - read on and consider where you have had shortcomings/challenges with the rule engine and if these changes will allow you to create rules as...
      Posted to CSLA .NET discussion by JonnyBee on Wed, Jul 20 2011
    • Re: 4.1 rules system, room for improvement?

      Hi all, Just dropping a word to let you know that the changes discussed in this thread were published in CslaContrib changeset #86959 with the comment "Added reimplemented Csla CommonRules that accepts a Func<string> to set a custom ErrorMessage" Thanks Jonny.
      Posted to CSLA .NET discussion by Tiago Freitas Leal on Sat, Apr 2 2011
    • How check rule for property

      I have Read only collection TradeRequestList : ReadOnlyListBase<TradeRequestList, TradeRequestInfo> and TradeRequestInfo: ReadOnlyBase<TradeRequestInfo>. In class TradeRequestInfo i override method protected override void AddBusinessRules() { BusinessRules.AddRule(new Csla.Rules.CommonRules...
      Posted to CSLA .NET discussion by sinvit on Thu, Mar 10 2011
    • AddWarningResult(IPropertyInfo property, string description) not working when used with multiple properties

      I am trying to write a rule that compares 4 properties and adds a warning result to all 4 properties when some condition exists. In the ctor I am adding all properties to the InputProperties and adding the non-primary properties to the AffectedProperties like so: public UsiUniqueClient( IPropertyInfo...
      Posted to CSLA .NET discussion by marthac on Fri, Feb 25 2011
    • Unit Test a CSLA Asynchronous Validation Rule

      I have a validation rule on a CSLA Business Base stereotyped class. I'm having trouble figuring out how to unit test the validation rule as it includes an asynchronous callback lambda expression. Here's some example code: using System; using System.Collections.Generic; using Csla; using Csla...
      Posted to CSLA .NET discussion by tomhunter on Thu, Feb 3 2011
    • Asynchronous Rule Question - CSLA 4

      I am new to CSLA and working in CSLA 4. What is the best way to implement a rule that triggers asynchronously for a property and that passes all properties of the property's parent to the command that is triggered? I have gone the path of creating a Rule object that calls a Command Object asynchronously...
      Posted to CSLA .NET discussion by Matt on Mon, Jan 3 2011
    • Re: a localization problem !

      Hi, I have the same problem... But , is changing the CSLA source code the unique way to apply localization in the validation rule messages? I guess must there be another solution... I have added csla.dll (Not the source code of CSLA only the assembly) as reference in my project. And I have in my project...
      Posted to CSLA .NET discussion by foxhard on Tue, Nov 30 2010
    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