This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example 1. This sample creates and adds a lambda rule (LogChangeRule) | |
// for the primary property PostCode | |
BusinessRules.AddRule( new QuickRule( LogChangeRule ).For( PostCodeProperty ) ); | |
// Example 2. This sample creates and adds a lambda rule (CheckIfExistsRule) | |
// for the primary property PostCode, and uses it as an input property | |
BusinessRules.AddRule( new QuickRule( CheckIfExistsRule ).For( PostCodeProperty ).UsingIt() ); | |
// Example 3. This sample creates and adds a lambda rule (MutatePostCodeToUpperCase) | |
// for the primary property PostCode (using the PostCode as an "input property") |