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;
        }
示例#2
0
        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;
        }
示例#3
0
        // 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;
        }