Inheritance: System.ComponentModel.DataAnnotations.ValidationAttribute
 public MinElementsIfAttribute(uint elements, string dependentProperty, Operator @operator, object dependentValue)
     : base(dependentProperty)
 {
     Operator = @operator;
     DependentValue = dependentValue;
     Metadata = OperatorMetadata.Get(Operator);
     MinElements = new MinElementsAttribute(elements);
 }
Esempio n. 2
0
 public MinElementsIfAttribute(uint elements, string dependentProperty, Operator @operator, object dependentValue)
     : base(dependentProperty)
 {
     Operator       = @operator;
     DependentValue = dependentValue;
     Metadata       = OperatorMetadata.Get(Operator);
     MinElements    = new MinElementsAttribute(elements);
 }