This project is read-only.
1
Vote

Allow custom validation of entire entity

description

In addition to the usual way of defining validation properties:
ForProperty(x => x.SomeProperty).SetReadOnly();
// etc
Also allow custom validation of the entire entity:
ValidateThis().Custom<SomeEntityValidator>(Validate);
// Or similar
Still thinking about how validation failures should be handled.

comments