PriceNotNegativeAttribute

Ecng.ComponentModel

Ensures a Price value is not negative (>= 0). Null is valid only if DisableNullCheck is true.

继承自: PriceValidationAttributeBase

方法

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

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

value
Price numeric value.