PriceNullOrMoreZeroAttribute

Ecng.ComponentModel

Ensures a Price value is null or greater than zero (> 0).

Inherits: PriceValidationAttributeBase

Properties

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

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

Methods

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

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

value
Price numeric value.