Frans, is there anyway in the future we could possibly have something similar to this build-in to the framework? It would be a very nice flexible option for standard validations and such.
so you could simply say..
if (!entity.IsValid)
{
MessageBox.Show(entity.BrokenRules.ToString());
}
At least now we could feel alittle more 'Domain-Driven'
Well, with an object based rule system, things are alot more flexible. Not only can we use encapsulate and re-use common validators, but we can also plug-in our own rules based on certain context at run-time.