public ValidateCompare(string propertyName, string otherPropertyName, ValidationOperator @operator, ValidationDataType dataType) : base(propertyName) { OtherPropertyName = otherPropertyName; Operator = @operator; DataType = dataType; Error = propertyName + " must be " + Operator.ToString() + " than " + otherPropertyName; }
public ValidateCompare(string propertyName, string otherPropertyName, ValidationOperator @operator, ValidationDataType dataType ) : base(propertyName) { OtherPropertyName = otherPropertyName; Operator = @operator; DataType = dataType; ErrorMessage = propertyName + " must be " + Operator.ToString() + " than " + otherPropertyName; }
// Varsayılan hata mesajlı yapıcı public ValidateCompare(string propertyName, string otherPropertyName, ValidationOperator @operator, ValidationDataType dataType) : base(propertyName) { OtherPropertyName = otherPropertyName; Operator = @operator; DataType = dataType; Error = propertyName + otherPropertyName + Operator.ToString() + ERRORMESSAGE; }
// Varsayılan hata mesajlı yapıcı public ValidateCompare(string propertyName, string otherPropertyName, ValidationOperator @operator, ValidationDataType dataType ) : base(propertyName) { OtherPropertyName = otherPropertyName; Operator = @operator; DataType = dataType; Error = propertyName + otherPropertyName + Operator.ToString() + ERRORMESSAGE; }