PriceNullOrNotNegativeAttribute
Ecng.ComponentModel
Ensures a Price value is null or not negative (>= 0).
Herda de: PriceValidationAttributeBase
Propriedades
AcceptNull
protected override bool AcceptNull { get; }
value = priceNullOrNotNegativeAttribute.AcceptNull
Gets a value indicating whether null price values are always accepted (independently of DisableNullCheck).
Métodos
Validate
protected override bool Validate(decimal value)
result = priceNullOrNotNegativeAttribute.Validate(value)
Core validation over the numeric price value (already extracted).
- value
- Price numeric value.