CslaGenFork released the Rules sample v.1.0.0.0

20 views
Skip to first unread message

Tiago Freitas Leal

unread,
Aug 27, 2011, 7:50:42 PM8/27/11
to CslaGenerator
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
Reply all
Reply to author
Forward
0 new messages