CompareTo attribute
More...
|
| override ValidationResult | IsValid (object value, ValidationContext validationContext) |
| | Determines if the property is valid More...
|
| |
CompareTo attribute
Definition at line 37 of file CompareTo.cs.
| Utilities.Validation.CompareToAttribute.CompareToAttribute |
( |
string |
PropertyName, |
|
|
ComparisonType |
Type, |
|
|
string |
ErrorMessage = "" |
|
) |
| |
Constructor
- Parameters
-
| PropertyName | Property to compare to |
| Type | Comparison type to use |
| ErrorMessage | Error message |
Definition at line 45 of file CompareTo.cs.
| override string Utilities.Validation.CompareToAttribute.FormatErrorMessage |
( |
string |
name | ) |
|
Formats the error message
- Parameters
-
- Returns
- The formatted string
Definition at line 67 of file CompareTo.cs.
| IEnumerable<ModelClientValidationRule> Utilities.Validation.CompareToAttribute.GetClientValidationRules |
( |
ModelMetadata |
metadata, |
|
|
ControllerContext |
context |
|
) |
| |
Gets the client side validation rules
- Parameters
-
| metadata | Model meta data |
| context | Controller context |
- Returns
- The list of client side validation rules
Definition at line 101 of file CompareTo.cs.
| override ValidationResult Utilities.Validation.CompareToAttribute.IsValid |
( |
object |
value, |
|
|
ValidationContext |
validationContext |
|
) |
| |
|
protected |
Determines if the property is valid
- Parameters
-
| value | Value to check |
| validationContext | Validation context |
- Returns
- The validation result
Definition at line 117 of file CompareTo.cs.
| string Utilities.Validation.CompareToAttribute.PropertyName |
|
get |
The documentation for this class was generated from the following file: