New Feature
Message() method has been overloaded to accept a function to build the validation message while the object/property is being validated.
Example:
var validator = Properties<Employee>
.For(e => e.FirstName)
.Required()
.Message((context, value) =>
{
customMessage = string.Format("Custom Message format '{0}'", value);
return customMessage;
});
Posted on June 18, 2012, 3:54 pm By crmckenzie
No comments yet Categories: Open Source Projects, Simple.Validation Tags: Open Source Projects, Simple.Validation
