Validating Objects
eXpress Persistent Objects has no built-in validation logic. Validation logic can however easily be implemented, by overriding the IXPObject.OnSaving or IXPObject.OnDeleting method’s implementation. This can be useful, for instance, to perform various checks when implementing ‘defensive programming’. It’s not recommended to mix the process of saving an object with the business-logic.