C# Class Catel.FluentValidatorProvider

The fluent validator provider.
This class will automatically retrieve the right fluent validation class associated with the view models.
Inheritance: ValidatorProviderBase
ファイルを表示 Open project: Catel/Catel

Public Methods

Method Description
FluentValidatorProvider ( ) : System

Initializes a new instance of the FluentValidatorProvider class.

Protected Methods

Method Description
GetValidator ( Type targetType ) : Data.IValidator

Gets a validator for the specified target type.

This method only searches for fluent validators on the assembly which the targetType belongs to, and creates adapters that allow fluent validator talks with catel validation approach.

Method Details

FluentValidatorProvider() public method

Initializes a new instance of the FluentValidatorProvider class.
public FluentValidatorProvider ( ) : System
return System

GetValidator() protected method

Gets a validator for the specified target type.
This method only searches for fluent validators on the assembly which the targetType belongs to, and creates adapters that allow fluent validator talks with catel validation approach.
protected GetValidator ( Type targetType ) : Data.IValidator
targetType System.Type /// The target type. ///
return Data.IValidator