Rockford Lhotka
    CTO at Magenic
    Author, speaker, software architect
    Creator of the CSLA .NET framework

Home
Blog
CSLA .NET
Magenic
Speaking
Publications
About me
Contact me

Login

C# p 106/VB p 107 (AddBusinessRules())

 

On page 106 in the C# edition, the StringMinLength parameter should be MinLength, not MaxLength:

      args = new Csla.Validation.DecoratedRuleArgs("Name");

      args["MinLength"] = 5;

      ValidationRules.AddRule(

        Csla.Validation.CommonRules.StringMinLength, args);

On page 107 in the VB edition, the StringMinLength parameter should be MinLength, not MaxLength:

      args = new Csla.Validation.DecoratedRuleArgs("Name")

      args("MinLength") = 5

      ValidationRules.AddRule( _

        AddressOf Csla.Validation.CommonRules.StringMinLength, args)

 

 

(Updated 11/12/2007 1:19:08 PM)