PriceGreaterThanZeroAttribute

Ecng.ComponentModel

Ensures a Price value is greater than zero (> 0). Null is valid only if DisableNullCheck is true.

Erbt von: PriceValidationAttributeBase

Methoden

Validate
protected override bool Validate(decimal value)
result = priceGreaterThanZeroAttribute.Validate(value)

Core validation over the numeric price value (already extracted).

value
Price numeric value.