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
SystemObject
  SystemAttribute
    EdiFabric.Core.Annotations.ValidationValidationAttribute
      EdiFabric.Core.Annotations.ValidationListCountAttribute

Namespace: EdiFabric.Core.Annotations.Validation
Assembly: EdiFabric (in EdiFabric.dll) Version: 10.7.4.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
See Also