This release added a parameterless constructor to object business rule CollectionPopulated.
Note - Object business rules aren't associated with any property in particular.
Jonny Bekkum is the coordinator of CslaContrib project and he has been very busy improving the rules system of Csla. In the beginning of August 2011 there were very important upgrades made on Csla SVN trunk that will be part of Csla 4.2.0. Read Jonny's post to know all about it.
There is a new Csla sample - RuleTutorial - that shows how to use rules under the August 2011 upgrade to the rules system. Unfortunately the rules library of CslaContrib wasn't upgraded to Csla 4.2.0.
This sub-project of CslaGenFork intends to release usable libraries of rules, both for Csla 4.1.0 and 4.2.0. Most of the rules from RuleTutorial are included (except for command rules) as well as some rules from CslaContrib that are absent from this tutorial. All of these rules are copyrighted Marimer LLC and subject to Csla license.
We also added some rules, both Authorization and Business Rules. This later set of rules is copyrighted CslaGenFork project and subject to MIT license.
Each file clearly states the copyright holder. Both Csla license and MIT license are very liberal and allow you to use the rules library in commercial and non-commercial products.
In order to use the rules library, CslaGenFork needs to find the respective Csla.dll in the same folder of the rules DLL.
• For Csla 4.1.0 you can grab Csla.dll from the Client folder created by Csla-4.1.0-110118.msi.
• For Csla 4.2.0 you must check out and build the source from Csla trunk. Then grab the Csla.dll from the Client folder.
• IsNewOrIsInRole
• IsOwner
• IsOwnerOrIsInRole
• RestrictByStatusOrIsInRole
• GreaterThanOrEqual
• LessThan
• LessThanOrEqual
• Range
• Range<MIN, MAX>
• IsNew
• IsNotNew
• StopIfAnyAdditionalHasValue
• StopIfIsNew
• StopIfIsNotNew
• StopIfNotCanWrite
• CollapseSpace
• CollapseWhiteSpace
• ToLower
• ToUpper
Note - Object business rules aren't associated with any property in particular.
Why
CslaGenFork makes it really easy to use Business and Authorization Rules imported from a DLL. As far as I know, there is only one library of rules around: CslaContrib.Jonny Bekkum is the coordinator of CslaContrib project and he has been very busy improving the rules system of Csla. In the beginning of August 2011 there were very important upgrades made on Csla SVN trunk that will be part of Csla 4.2.0. Read Jonny's post to know all about it.
There is a new Csla sample - RuleTutorial - that shows how to use rules under the August 2011 upgrade to the rules system. Unfortunately the rules library of CslaContrib wasn't upgraded to Csla 4.2.0.
This sub-project of CslaGenFork intends to release usable libraries of rules, both for Csla 4.1.0 and 4.2.0. Most of the rules from RuleTutorial are included (except for command rules) as well as some rules from CslaContrib that are absent from this tutorial. All of these rules are copyrighted Marimer LLC and subject to Csla license.
We also added some rules, both Authorization and Business Rules. This later set of rules is copyrighted CslaGenFork project and subject to MIT license.
Each file clearly states the copyright holder. Both Csla license and MIT license are very liberal and allow you to use the rules library in commercial and non-commercial products.
How
There are two sets of files, one for Csla 4.1.0 and another for Csla 4.2.0. Although 4.1.0 and 4.2.0 rules share the same basic code, they may behave differently on the different versions of Csla.In order to use the rules library, CslaGenFork needs to find the respective Csla.dll in the same folder of the rules DLL.
• For Csla 4.1.0 you can grab Csla.dll from the Client folder created by Csla-4.1.0-110118.msi.
• For Csla 4.2.0 you must check out and build the source from Csla trunk. Then grab the Csla.dll from the Client folder.
What
Authorization Rules:
• IsEmptyOrIsInRole• IsNewOrIsInRole
• IsOwner
• IsOwnerOrIsInRole
• RestrictByStatusOrIsInRole
Business Rules:
Object Rules
• CollectionPopulated NEWCollection Rules
• NoDuplicatesCompare Fields Rules
• GreaterThan• GreaterThanOrEqual
• LessThan
• LessThanOrEqual
• Range
• Range<MIN, MAX>
Date Rules
• DateNotInFutureGateway Rules
• CanWrite• IsNew
• IsNotNew
Short Circuiting Rules
• AnyRequired• StopIfAnyAdditionalHasValue
• StopIfIsNew
• StopIfIsNotNew
• StopIfNotCanWrite
Transformation Rules
• CalcSum• CollapseSpace
• CollapseWhiteSpace
• ToLower
• ToUpper