VAB: If No Default Rule for an object

Topics: Validation Application Block
Mar 2, 2007 at 2:52 PM

I figured out that it could be nice to handle a situation when we invoke ValidationFactory.CreateValidator<Customer>() and there is no default rule set up for this object. Let's say if there are at least one rule set for Customer in config CreateValidator<Customer>() (without ruleset name) throws an internal exception and logs it through an exeption publishing

The idea is to track possible bad configuration...

Mar 2, 2007 at 10:54 PM
Maybe just add the appropriate event log entry...