Click or drag to resize

ListCountAttribute Class

EDI DOM validation attribute for lists. Sets the allowed minimum and maximum number of items in the list. Used for repeating EDI loops, EDI segments, EDI composite data elements, EDI component data elements and EDI data elements. Can only be applied to properties of generic List type.
Inheritance Hierarchy

Namespace:  EdiFabric.Core.Annotations.Validation
Assembly:  EdiFabric.Core (in EdiFabric.Core.dll) Version: 1.0.0.0 (9.7.7.0)
Syntax
public class ListCountAttribute : ValidationAttribute

The ListCountAttribute type exposes the following members.

Constructors
  NameDescription
Public methodListCountAttribute(Int32)
Initializes a new instance of the ListCountAttribute class.
Public methodListCountAttribute(Int32, Int32)
Initializes a new instance of the ListCountAttribute class.
Top
Properties
  NameDescription
Public propertyMaxCount
The maximum allowed items.
Public propertyMinCount
The minimum allowed items.
Top
Methods
  NameDescription
Public methodValidateEdi
Detects if an EDI data element is valid according to its repetitions.
(Overrides ValidationAttributeValidateEdi(ValidationContext).)
Top
Extension Methods
  NameDescription
Public Extension MethodValidate(SyntaxSet, Char)Overloaded.
Validates an EDI item according to its EDI DOM validation attributes.
(Defined by ValidationExtensions.)
Public Extension MethodValidate(Int32, SyntaxSet, Char, Int32)Overloaded.
Validates an item according to its EDI DOM validation attributes. This is internally called to validate an EdiMessage.
(Defined by ValidationExtensions.)
Top
See Also