-
Dear All: I am a junior in CSLA framework. There's a doubt when i reading the "Using CSLA 4" about the business rule: It says "the target property can only be used on the ui thread and any use of this property on a background thread will lead to cross-thread exceptions or nasty threading...
-
I have been scratching my head for some time trying to figure out why my business rule wasn't setting a Guid property on my business object, since I had done this sort of thing before. However, it occurred to me that the other properties I was setting were strings and primitive values. So, I copied...
-
I am working on a way to make custom CSLA validation rules work with the extensible validation architecture of ASP.NET MVC. I have worked out how to extend MVC to inject the client-side rules, like this: 1. Create subclass of DataAnnotationsModelValidatorProvider, overriding GetValidators(): protected...
-
I am attempting to rework the AccountController in the MVC4 default template so it uses CSLA rather than SimpleMembership because SimpleMembership didn't meet my requirements. I am replacing the command-based architecture with CSLA business objects. Right now I am working with the UserRegister business...
-
Hi, I am using CSLA 4.2.2 with Silverlight (love it). I have a question about the use of async rules. I have some BusinessBase objects I fetch from the database.There is the possibility the database data can be incorrect, so I want to call BusinessRules.CheckRules() from within DataPortal_Fetch. In this...
-
My team is going to begin reviewing the many business rules (perhaps in the hundreds) we have for saving sales orders, quotes, purchase orders, etc. in our 15 year old system in preparation for moving them into CSLA business objects. Would anyone be willing to point me to some examples or particular...
-
I'm writing rules which are ignorant of the type to which they are applied, and so I'm using the InputPropertyValues to examine the property values I care about and act on them. I'm curious though as this has bitten me several times now, why do I need to set InputProperties to an array of...
-
You can invoke the data portal from inside a business rule, yes. That is supported. My one comment, is that by implementing this as a synchronous rule you'll block the user from interacting with the UI until that rule completes. You might choose to make the rule async (as described in the 'Using...
-
There is support for this - you just have to follow some basic guidelines. BusinessRules at Object level must have ProperyProperty = null. AuthorizationRules for Static methods must have Member = null (CanGetObject, CanCreateObject, CanEditObject, CanDeleteObject) BusinessRules for a Property must have...
-
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...