PriceNullOrNotNegativeAttribute

Ecng.ComponentModel

Ensures a Price value is null or not negative (>= 0).

Наследует: PriceValidationAttributeBase

Свойства

AcceptNull
protected override bool AcceptNull { get; }
value = priceNullOrNotNegativeAttribute.AcceptNull

Gets a value indicating whether null price values are always accepted (independently of DisableNullCheck).

Методы

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

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

value
Price numeric value.