Download the Rules sample at
http://cslagenfork.codeplex.com/releases/view/72421
CslaGenFork has a new feature: Import Business and Authorization Rules
from DLL. This sample is the missing complement to this feature. It
includes a DLL rules library you can freely use in your projects.
The rules come from Csla Sample RuleTutorial, CslaContrib and some
from CslaGenFork project. Documentation in the form of CHM files for
C# and VB is included.
What rules can you find in the library?
Authorization Rules:
• IsEmptyOrIsInRole
• IsInRoleOrIsOwner
• IsNewOrIsInRole
• IsOwner
• RestrictByStatusOrIsInRole
Business Rules:
Collection Rules
• NoDuplicates
Compare Fields Rules
• GreaterThan
• GreaterThanOrEqual
• LessThan
• LessThanOrEqual
• Range
• Range<MIN, MAX>
Date Rules
• DateNotInFuture
Gateway Rules
• CanWrite
• IsNew
• IsNotNew
Short Circuiting Rules
• AnyRequired
• StopIfAnyAdditionalHasValue
• StopIfIsNew
• StopIfIsNotNew
• StopIfNotCanWrite
Transformation Rules
• CalcSum
• CollapseSpace
• CollapseWhiteSpace
• ToLower
• ToUpper