Regarding Enterprise libaray validation

Dec 15, 2008 at 11:42 AM

i have the following class



class Person




private string firstname;public string lastname;



public string FirstName



get{return firstname;}set{firstname = value;}}



public string LastName{get{return lastname;}set{lastname = value;}}



i used config file to create validation rule
here firstname is mandatiory so i used [NotNullvalidator]
but in case of lastname
i can be null but if entered i should be less than 20 characters
please help me how to created ANDCOMPOSITE VALIDATOR

Dec 16, 2008 at 6:33 PM
You're posting in the CodePlex Discussions (questions about the CodePlex site). Please go to the project's pages and post to the Discussions of the project you're using.