C# Class Adf.Base.Validation.BusinessRuleValidationPolicy

Represents BusinessRuleValidationPolicy. This class does some sort of validations on a validatable object.
Inheritance: IValidationPolicy
Datei anzeigen Open project: NLADP/ADF

Public Methods

Method Description
Validate ( object validatable ) : void

Implements some sort of validation on a validatable object. When validation fails, the implementing services are required to add validation messages to the validation manager.

Validate ( object validatable, bool suppressWarnings ) : void

Implements some sort of validation on a validatable object. When validation fails, the implementing services are required to add validation messages to the validation manager.

Method Details

Validate() public method

Implements some sort of validation on a validatable object. When validation fails, the implementing services are required to add validation messages to the validation manager.
public Validate ( object validatable ) : void
validatable object The object to validate. In most cases this will be a domain /// obect or a domain collection.
return void

Validate() public method

Implements some sort of validation on a validatable object. When validation fails, the implementing services are required to add validation messages to the validation manager.
public Validate ( object validatable, bool suppressWarnings ) : void
validatable object The object to validate. In most cases this will be a domain /// obect or a domain collection.
suppressWarnings bool Decides if warnings and infos are added to the ValidationManager.
return void