示例#1
0
        public static IEnumerable <IValidator> CreateValidators(IField field, FieldValidatorFactory createFieldValidator)
        {
            Guard.NotNull(field, nameof(field));

            var visitor = new DefaultFieldValueValidatorsFactory(createFieldValidator);

            return(field.Accept(visitor));
        }
 public IEnumerable <IValidator> CreateValueValidators(ValidatorContext context, IField field, ValidatorFactory factory)
 {
     return(DefaultFieldValueValidatorsFactory.CreateValidators(context, field, factory));
 }
 public IEnumerable <IValidator> CreateValueValidators(ValidationContext context, IField field, FieldValidatorFactory createFieldValidator)
 {
     return(DefaultFieldValueValidatorsFactory.CreateValidators(field, createFieldValidator));
 }