コード例 #1
0
        /// <summary>
        /// Retrieves the column as an int
        /// </summary>
        /// <param name="i">The index of the column to retrieve</param>
        /// <returns>Int32</returns>
        public override Int32 GetInt32(int i)
        {
            if (i >= VisibleFieldCount && _keyInfo != null)
            {
                return(_keyInfo.GetInt32(i - VisibleFieldCount));
            }

            VerifyType(i, DbType.Int32);
            return(_activeStatement._sql.GetInt32(_activeStatement, i));
        }
コード例 #2
0
        /// <summary>
        /// Retrieves the column as an int
        /// </summary>
        /// <param name="i">The index of the column to retrieve</param>
        /// <returns>Int32</returns>
        public override Int32 GetInt32(int i)
        {
#if MONO_SUPPORT_KEYREADER
            if (i >= VisibleFieldCount && _keyInfo != null)
            {
                return(_keyInfo.GetInt32(i - VisibleFieldCount));
            }
#endif

            VerifyType(i, DbType.Int32);
            return(_activeStatement._sql.GetInt32(_activeStatement, i));
        }