public FieldValueValidationDecorator(IFieldExposed decoratedField, IRuntimeContext context)
        {
            this.decoratedField = decoratedField;

            this.validators = new BaseFieldValueValidator[]
            {
                new IncorrectDataTypeFieldValidator(context),
                new NullAssignmentToRequiredFieldValueValidator(context),
                new InvalidValueFieldValueValidator(context),
                new ValueAssignmentToReadonlyFieldValueValidator(context),
                new ValueAssignmentToHistoryFieldValidator(context)
            };
        }
コード例 #2
0
 public DoubleFixFieldDecorator(IFieldExposed decoratedField, IRuntimeContext context)
 {
     this.decoratedField = decoratedField;
 }