C# Class FluentLinqToSql.ActiveRecord.DataAnnotationsValidator

Inheritance: IValidator
Afficher le fichier Open project: JeremySkinner/FluentLinqToSql Class Usage Examples

Méthodes publiques

Méthode Description
DataAnnotationsValidator ( Type type ) : System
Validate ( object toValidate ) : System.ComponentModel.DataAnnotations.ValidationResult

Private Methods

Méthode Description
GetProperties ( ) : System.Reflection.PropertyInfo[]
GetPropertyValue ( PropertyInfo property, object toValidate ) : object
GetValidators ( ) : System.ComponentModel.DataAnnotations.ValidationAttribute[]
GetValidators ( PropertyInfo property ) : System.ComponentModel.DataAnnotations.ValidationAttribute[]

Method Details

DataAnnotationsValidator() public méthode

public DataAnnotationsValidator ( Type type ) : System
type System.Type
Résultat System

Validate() public méthode

public Validate ( object toValidate ) : System.ComponentModel.DataAnnotations.ValidationResult
toValidate object
Résultat System.ComponentModel.DataAnnotations.ValidationResult