Validate() is used to validate business rules on the business object. Validates both EF entity validation rules on pending changes as well as any custom validation rules you implement in the OnValidate() method.
Do not override this method for custom Validation(). Instead override OnValidate() or add error entries to the ValidationErrors collection.
public bool Validate(TEntity entity, bool clearValidationErrors)
Return Value
True or False.
Parameters
entity
Optional entity to validate. Defaults to this.Entity
clearValidationErrors
If true clears all validation errors before processing rules
See also:
Class wwBusiness Class ValidationErrorCollection© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic