Re: ValidationRules.AddRule correct syntax

Re: ValidationRules.AddRule correct syntax

Old forum URL: forums.lhotka.net/forums/t/3099.aspx


ozitraveller posted on Tuesday, June 26, 2007

Hi

This is from is ProjectTracker20c

ValidationRules.AddRule(new RuleHandler(CommonRules.StringRequired), "FirstName");

And this is from a class I built from the CodeSmith templates

ValidationRules.AddRule(CommonRules.StringRequired, "FirstName");

However the intellisence on CommonRules is different to the first example.

So I tried

ValidationRules.AddRule(Csla.Validation.CommonRules.StringRequired, "FirstName");

and got the same intellisence list as the first example.

Is this a known issue?

Thanks

 

 

Copyright (c) Marimer LLC