Beispiel #1
0
        public override IdpeMessage Parse(bool onlyConstraints)
        {
            try
            {
                this._ParseResult = new IdpeMessage(IdpeMessageCodes.IDPE_SUCCESS);
                if (base.Value.ToUpper() != "NULL")
                {
                    if (ValueLong == null)
                    {
                        TryExtractingSpecificType();
                        if (ValueLong == null)  //still null, then throw
                        {
                            this._ParseResult         = new IdpeMessage(IdpeMessageCodes.IDPE_BIGINT_TYPE_DATA_VALIDATION_FAILED);
                            this._ParseResult.Message = string.Format(this._ParseResult.Message, PrintRowColPosition(), Type, base.Value);
                            return(this._ParseResult);
                        }
                    }

                    Value = ValueLong.ToString();
                    CheckConstraints();
                }
            }
            catch (Exception ex)
            {
                ExtensionMethods.TraceError(ex.ToString());
                this._ParseResult         = new IdpeMessage(IdpeMessageCodes.IDPE_BIGINT_TYPE_DATA_VALIDATION_FAILED);
                this._ParseResult.Message = string.Format(this._ParseResult.Message, PrintRowColPosition(), Type, base.Value);
            }
            _IsParsed = true;
            return(this._ParseResult);
        }
Beispiel #2
0
 public string ToString(string format, IFormatProvider formatProvider)
 {
     return(ValueLong.ToString(format, formatProvider));
 }
Beispiel #3
0
 public override string ToString()
 {
     return(ValueLong.ToString());
 }