GreaterThanValidator
Assembly: ServiceStack.dll
View Source
Declaration
public class GreaterThanValidator : AbstractComparisonValidator, IComparisonValidator, IPropertyValidator
Properties
Comparison
View Source
Declaration
public override Comparison Comparison { get; }
Inherited Properties
Comparison
Metadata- the comparison type
View Source
Declaration
public abstract Comparison Comparison { get; }
MemberToCompare
Metadata- the member being compared
View Source
Declaration
public MemberInfo MemberToCompare { get; }
ValueToCompare
Metadata- the value being compared
View Source
Declaration
public object ValueToCompare { get; }
Methods
IsValid(IComparable, IComparable)
View Source
Declaration
public override bool IsValid(IComparable value, IComparable valueToCompare)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.IComparable | value |
System.IComparable | valueToCompare |
GetDefaultMessageTemplate()
View Source
Declaration
protected override string GetDefaultMessageTemplate()
Returns
System.String
Inherited Methods
GetComparableValue(PropertyValidatorContext, Object)
View Source
Declaration
public IComparable GetComparableValue(PropertyValidatorContext context, object value)
Returns
System.IComparable
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.Validators.PropertyValidatorContext | context |
System.Object | value |
GetComparisonValue(PropertyValidatorContext)
View Source
Declaration
public IComparable GetComparisonValue(PropertyValidatorContext context)
Returns
System.IComparable
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.Validators.PropertyValidatorContext | context |
IsValid(PropertyValidatorContext)
Performs the comparison
View Source
Declaration
protected sealed override bool IsValid(PropertyValidatorContext context)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.Validators.PropertyValidatorContext | context |
IsValid(IComparable, IComparable)
Override to perform the comparison
View Source
Declaration
public abstract bool IsValid(IComparable value, IComparable valueToCompare)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.IComparable | value |
System.IComparable | valueToCompare |