PriceNotNegativeAttribute
Ecng.ComponentModel
Ensures a Price value is not negative (>= 0). Null is valid only if DisableNullCheck is true.
Erbt von: PriceValidationAttributeBase
Methoden
Validate
protected override bool Validate(decimal value)
result = priceNotNegativeAttribute.Validate(value)
Core validation over the numeric price value (already extracted).
- value
- Price numeric value.