/// <summary>
        /// Returns the column as a short
        /// </summary>
        /// <param name="i">The index of the column to retrieve</param>
        /// <returns>Int16</returns>
        public override Int16 GetInt16(int i)
        {
            if (i >= VisibleFieldCount && _keyInfo != null)
            {
                return(_keyInfo.GetInt16(i - VisibleFieldCount));
            }

            VerifyType(i, DbType.Int16);
            return(Convert.ToInt16(_activeStatement._sql.GetInt32(_activeStatement, i)));
        }
Example #2
0
        /// <summary>
        /// Returns the column as a short
        /// </summary>
        /// <param name="i">The index of the column to retrieve</param>
        /// <returns>Int16</returns>
        public override Int16 GetInt16(int i)
        {
#if MONO_SUPPORT_KEYREADER
            if (i >= VisibleFieldCount && _keyInfo != null)
            {
                return(_keyInfo.GetInt16(i - VisibleFieldCount));
            }
#endif

            VerifyType(i, DbType.Int16);
            return(Convert.ToInt16(_activeStatement._sql.GetInt32(_activeStatement, i)));
        }