C# Class Nettiers.AdventureWorks.Entities.Validation.PropertyValidator

Property Validator
Inheritance: Microsoft.Practices.EnterpriseLibrary.Validation.Validator, IValidationIntegrationProxy
Mostrar archivo Open project: netTiers/netTiers Class Usage Examples

Private Properties

Property Type Description
GetValue bool

Public Methods

Method Description
GetMemberValueAccessBuilder ( ) : Microsoft.Practices.EnterpriseLibrary.Validation.MemberValueAccessBuilder

Gets the member value access builder.

GetRawValue ( ) : object

Gets the raw value.

PerformCustomValueConversion ( Microsoft.Practices.EnterpriseLibrary.Validation.Integration.ValueConvertEventArgs e ) : void

Performs the custom value conversion.

PropertyValidator ( object objectToValidate, string propertyName ) : System

Creates an instance of PropertyValidator

PropertyValidator ( object objectToValidate, string propertyName, string ruleset ) : System

Creates an instance of PropertyValidator

PropertyValidator ( object objectToValidate, string propertyName, string ruleset, ValidationSpecificationSource specificationSource ) : System

Creates an instance of PropertyValidator

Protected Methods

Method Description
DoValidate ( object objectToValidate, object currentTarget, string key, ValidationResults validationResults ) : void

Does the validate.

Private Methods

Method Description
GetValue ( object &value, string &valueAccessFailureMessage ) : bool

Gets the value.

Method Details

DoValidate() protected method

Does the validate.
protected DoValidate ( object objectToValidate, object currentTarget, string key, ValidationResults validationResults ) : void
objectToValidate object The object to validate.
currentTarget object The current target.
key string The key.
validationResults ValidationResults The validation results.
return void

GetMemberValueAccessBuilder() public method

Gets the member value access builder.
public GetMemberValueAccessBuilder ( ) : Microsoft.Practices.EnterpriseLibrary.Validation.MemberValueAccessBuilder
return Microsoft.Practices.EnterpriseLibrary.Validation.MemberValueAccessBuilder

GetRawValue() public method

Gets the raw value.
public GetRawValue ( ) : object
return object

PerformCustomValueConversion() public method

Performs the custom value conversion.
public PerformCustomValueConversion ( Microsoft.Practices.EnterpriseLibrary.Validation.Integration.ValueConvertEventArgs e ) : void
e Microsoft.Practices.EnterpriseLibrary.Validation.Integration.ValueConvertEventArgs The instance containing the event data.
return void

PropertyValidator() public method

Creates an instance of PropertyValidator
public PropertyValidator ( object objectToValidate, string propertyName ) : System
objectToValidate object The object to validate.
propertyName string The property for objectToValidate
return System

PropertyValidator() public method

Creates an instance of PropertyValidator
public PropertyValidator ( object objectToValidate, string propertyName, string ruleset ) : System
objectToValidate object The object to validate.
propertyName string The property for objectToValidate
ruleset string The optional ruleset to use for validation.
return System

PropertyValidator() public method

Creates an instance of PropertyValidator
public PropertyValidator ( object objectToValidate, string propertyName, string ruleset, ValidationSpecificationSource specificationSource ) : System
objectToValidate object The object to validate.
propertyName string The property for objectToValidate
ruleset string The optional ruleset to use for validation.
specificationSource ValidationSpecificationSource Whether to use validation rules from attributes, config file, or both.
return System