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

            VerifyType(i, DbType.Byte);
            return(Convert.ToByte(_activeStatement._sql.GetInt32(_activeStatement, i)));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Retrieves the column as a single byte value
        /// </summary>
        /// <param name="i">The index of the column to retrieve</param>
        /// <returns>byte</returns>
        public override byte GetByte(int i)
        {
#if MONO_SUPPORT_KEYREADER
            if (i >= VisibleFieldCount && _keyInfo != null)
            {
                return(_keyInfo.GetByte(i - VisibleFieldCount));
            }
#endif

            VerifyType(i, DbType.Byte);
            return(Convert.ToByte(_activeStatement._sql.GetInt32(_activeStatement, i)));
        }