This project is read-only.

1. Define Error Level: Warn / Error

//ValidationLevel is Error
Check(c => c.LastName).Required();

//ValidationLevel is Warning
Warn(c => c.FirstName).Required();

2. Define Property as Required or Optional

Check(c => c.FirstName).Optional();
Check(c => c.LastName).Required();

Conditionally Required

Check(c => c.LastName).Required().If(c => c.ContactType == ContactType.Primary)

3. Chain Validators

See Validators

4. Conditional Logic

TODO: And, Or, Not

Last edited Jan 24, 2010 at 5:26 AM by TechnoAg, version 4

Comments

No comments yet.