String Length Validator question

Topics: Validation Application Block
Jan 6, 2009 at 9:01 PM
I'm creating a rule set for the members in my business object.  For one of my members, I want to validate that it is "Not Null" and that the maximum length of the field is 32 characters.  Would you create two individual validators (Not Null Validator and String Length Validator) for the property or would the String Length Validator be adaquate for this scenario (LowerBound =1, inclusive, UpperBound = 32, inclusive)?

Jan 7, 2009 at 1:24 AM
Your StringLengthValidator would suffice.

Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.