public override bool IsValid(ValidationRequest validateRequest)
        {
            IValidator validator = ValidatorResolver.Resolve(validateRequest.DataType);

            return(validator.IsRequire(validateRequest.Value));
        }
Example #2
0
        public override bool IsValid(ValidationRequest validateRequest)
        {
            IValidator validator = ValidatorResolver.Resolve(this.EntityType.FullName);

            return(validator.IsUnique(validateRequest.Value, this.Options));
        }
Example #3
0
        public override bool IsValid(ValidationRequest validateRequest)
        {
            IValidator validator = ValidatorResolver.Resolve(validateRequest.DataType);

            return(validator.IsValueInCollection(validateRequest.Value, this.Values));
        }
 public virtual bool IsValid(ValidationRequest validateRequest)
 {
     return(true);
 }
        public override bool IsValid(ValidationRequest validateRequest)
        {
            IValidator validator = ValidatorResolver.Resolve(validateRequest.DataType);

            return(validator.IsValueInRange(validateRequest.Value, this.LowerBound, this.UpperBound));
        }
        public override bool IsValid(ValidationRequest validateRequest)
        {
            IValidator validator = ValidatorResolver.Resolve(validateRequest.DataType);

            return(validator.IsMatch(validateRequest.Value, this.Evaluator));
        }