PriceNullOrMoreZeroAttribute

Ecng.ComponentModel

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

Erbt von: PriceValidationAttributeBase

Eigenschaften

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

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

Methoden

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

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

value
Price numeric value.