public DBDateRangeAttribute( int ordinal = DefaultOrdinal, string description = DefaultDescription, ValidateErrorLevel level = DefaultErrorLevel) : base(ordinal, description, level) { }
public InvalidValueAttribute( object[] value, int ordinal = DefaultOrdinal, string description = DefaultDescription, ValidateErrorLevel level = DefaultErrorLevel) : base(ordinal, description, level) { Values = value; }
public ValidateMethodAttribute(string methodName, int ordinal = DefaultOrdinal, BindingFlags flags = DefaultBindingFlags, string recomendetDescription = DefaultDescription, ValidateErrorLevel recomendetLevel = DefaultValidatetionLevel) : base(ordinal, recomendetDescription, recomendetLevel) { MethodName = methodName; MethodFlags = flags; }
public ValidateParentReferenceAttribute(string childPropertyName = null, int ordinal = DefaultOrdinal, string description = DefaultDescription, ValidateErrorLevel level = DefaultErrorLevel) : base(ordinal, description, level) { ChildPropertyName = childPropertyName; }
public virtual bool HasErrorsWithLevel(ValidateErrorLevel level, string propertyName = null) { return(Errors.Any(e => e.Value.Any(ve => ve.Level == level) && (propertyName == null || e.Key == propertyName))); }
public ValidateError(string description, ValidateErrorLevel level) { Description = description; Level = level; }
public bool HasErrorsWithLevel(ValidateErrorLevel level) { return(this.Any(i => i.Level == level)); }
public MaxLengthAttribute(int maxLength, int ordinal = DefaultOrdinal, string description = DefaultDescription, ValidateErrorLevel level = DefaultErrorLevel) : base(ordinal, description, level) { MaxLength = maxLength; }
protected BaseSimpleValidateAttribute(int ordinal, string description, ValidateErrorLevel level) : base(ordinal) { Description = description; Level = level; }