C# Class ExpressiveAnnotations.MvcWebSample.Inheritance.CustomAssertThatAttribute

Inheritance: ExpressiveAnnotations.Attributes.ExpressiveAttribute
Datei anzeigen Open project: jwaliszko/ExpressiveAnnotations

Public Methods

Method Description
CustomAssertThatAttribute ( string expression ) : System
FormatErrorMessage ( string displayName, string expression, Type objectType, Guid>.IDictionary &fieldsMap ) : string
FormatErrorMessage ( string displayName, string expression, object objectInstance ) : string

Protected Methods

Method Description
IsValidInternal ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult

Method Details

CustomAssertThatAttribute() public method

public CustomAssertThatAttribute ( string expression ) : System
expression string
return System

FormatErrorMessage() public method

public FormatErrorMessage ( string displayName, string expression, Type objectType, Guid>.IDictionary &fieldsMap ) : string
displayName string
expression string
objectType System.Type
fieldsMap Guid>.IDictionary
return string

FormatErrorMessage() public method

public FormatErrorMessage ( string displayName, string expression, object objectInstance ) : string
displayName string
expression string
objectInstance object
return string

IsValidInternal() protected method

protected IsValidInternal ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult
value object
validationContext System.ComponentModel.DataAnnotations.ValidationContext
return System.ComponentModel.DataAnnotations.ValidationResult