We are just upgrading from an older version of CSLA to the new framework (4.5.6) and having a little difficulty with one scenario. I have a CSLA class (Model) referencing properties on another CSLA class (Relation) as a private backing field. The registration is setup like this: Public Shared ReadOnly...

Not able to display error/warn/Info messages to user(UI) with asp.net webapplication? How can i display Business rule required field error message to user ? Any Example with webapplication will help me?

I am having trouble implementing two very simple business rules, one updater and one validator. The first rule, verifies if a bool property "IsSelected" is true. If so, it sets the value of a second (a string) property to "". The second rule creates a broken rule if the second property...

I REALLY hate property rules that depend on other properties because I can never make up my mind on how to deal with these type of broken rules. The canonical example is the Start and End time properties when both of these properties reside on the same object. For example, supposed that “Start...

Hello, When my new object is created (IsNew == true), the object starts up with several broken rules. So I thought I would be nice to create a unit test that creates a new object and makes sure that the appropriate initial broken rules are present. This is all good but my problem is that I am not sure...

Hi All, I have a form with some silverlight data bound controls along with the csla propertystatus controls. Now the business object it is bound to, have some business rules in it. If I am explicitly making changes to the data in the control which in turn triggers any validation error i am getting a...

Hi. I have the fallowing problem: My BusinessObject has two Properties, which should be checked by a businessRule: DefaultInchargeModeProperty - this is of type byte and has 0, 1 or 2 as value. DefaultInchargeUserProperty - this is a ReadOnlyObject. Now, when DefaultInchargeMode has the value 2, DefaultInchargeUserProperty...

Hi, I am using CSLA 3.0.5.0. I have one instance - On edit of an object does not permit users to edit certain properties in accordance with the value of another property . For example there is an object Person with properties Name, age,active. If a person want to edit person details he will load the...

I am trying to learn how to add custom business rules. I am using CSLA 3.8 and I understand the basics from the book about adding a business rule like the common rules. I have an object that has FlightTime (decimal) property. This object has 2 other properties whose sum cannot exceed FlightTime, but...