⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gpdatareader.cs

📁 Gibphone is CSharp Program, it can tell you how to design p2p chat.
💻 CS
📖 第 1 页 / 共 2 页
字号:
        /// <exception cref="InvalidCastException">The specified cast is not valid.</exception>
        public override decimal GetDecimal(int i) { return read.GetDecimal(i); }
        /// <summary>
        /// Gets the value of the specified column as a Double.
        /// </summary>
        /// <param name="i">The zero-based column ordinal.</param>
        /// <returns>A Double that is the value of the column.</returns>
        /// <remarks>
        /// Call IsDBNull to check for null values before calling this method.
        /// </remarks>
        /// <exception cref="InvalidCastException">The specified cast is not valid.</exception>
        public override double GetDouble(int i) { return read.GetDouble(i); }
        /// <summary>
        /// Gets an Enumerator for the Fields in the Row.
        /// </summary>
        /// <returns>An Enumerator for this <see cref="GPDataReader"/></returns>
        public override IEnumerator GetEnumerator() { return read.GetEnumerator(); }
        /// <summary>
        /// Gets the Type that is the data type of the column.
        /// </summary>
        /// <param name="i">The zero-based column ordinal.</param>
        /// <returns>The Type that is the data type of the object.</returns>
        public override Type GetFieldType(int i) { return read.GetFieldType(i); }
        /// <summary>
        /// Gets the value of the specified column as a Float.
        /// </summary>
        /// <param name="i">The zero-based column ordinal.</param>
        /// <returns>A Float that is the value of the column.</returns>
        /// <remarks>
        /// Call IsDBNull to check for null values before calling this method.
        /// </remarks>
        /// <exception cref="InvalidCastException">The specified cast is not valid.</exception>
        public override float GetFloat(int i) { return read.GetFloat(i); }
        /// <summary>
        /// NOT IMPLEMENTED.
        /// </summary>
        /// <param name="i"></param>
        /// <returns></returns>
        public override Guid GetGuid(int i) { return read.GetGuid(i); }
        /// <summary>
        /// Gets the value of the specified column as an Int16.
        /// </summary>
        /// <param name="i">The zero-based column ordinal.</param>
        /// <returns>An Int16 that is the value of the column.</returns>
        /// <remarks>
        /// Call IsDBNull to check for null values before calling this method.
        /// </remarks>
        /// <exception cref="InvalidCastException">The specified cast is not valid.</exception>
        /// 
        public override short GetInt16(int i) { return read.GetInt16(i); }
        /// <summary>
        /// Gets the value of the specified column as an Int32.
        /// </summary>
        /// <param name="i">The zero-based column ordinal.</param>
        /// <returns>An Int32 that is the value of the column.</returns>
        /// <remarks>
        /// Call IsDBNull to check for null values before calling this method.
        /// </remarks>
        /// <exception cref="InvalidCastException">The specified cast is not valid.</exception>
        public override int GetInt32(int i) { return read.GetInt32(i); }
        /// <summary>
        /// Gets the value of the specified column as an Int64.
        /// </summary>
        /// <param name="i">The zero-based column ordinal.</param>
        /// <returns>An Int64 that is the value of the column.</returns>
        /// <remarks>
        /// Call IsDBNull to check for null values before calling this method.
        /// </remarks>
        /// <exception cref="InvalidCastException">The specified cast is not valid.</exception>
        public override long GetInt64(int i) { return read.GetInt64(i); }
        /// <summary>
        /// Gets the name of the specified column.
        /// </summary>
        /// <param name="i">The zero-based column ordinal.</param>
        /// <returns>The name of the column.</returns>
        public override string GetName(int i) { return read.GetName(i); }
        /// <summary>
        /// Gets the column ordinal, given the name of the column.
        /// </summary>
        /// <param name="name">The name of the column.</param>
        /// <returns>The zero-based column ordinal.</returns>
        public override int GetOrdinal(string name) { return read.GetOrdinal(name); }
        /// <summary>
        /// Returns a DataTable that describes the column metadata of the <see cref="GPDataReader"/>.
        /// </summary>
        /// <returns>A DataTable that describes the column metadata.</returns>
        /// <remarks>
        /// <para>
        /// <div class="tablediv"><table class="dtTABLE" cellspacing="0"><tr valign="top">
        ///						<th width="50%">DataReader Column</th>
        ///						<th width="50%">Description</th>
        ///					</tr><tr valign="top">
        ///						<td>ColumnName</td>
        ///						<td> The name of the column; this might not be unique. If this cannot be determined, a null value is returned. This name always reflects the most recent renaming of the column in the current view or command text. </td>
        ///					</tr><tr valign="top">
        ///						<td>ColumnOrdinal</td>
        ///						<td> The ordinal of the column. Columns are numbered starting with one. This column cannot contain a null value. </td>
        ///					</tr><tr valign="top">
        ///						<td>ColumnSize</td>
        ///						<td> The maximum possible length of a value in the column. For columns that use a fixed-length data type, this is the size of the data type. </td>
        ///					</tr><tr valign="top">
        ///						<td>NumericPrecision</td>
        ///						<td> If ProviderType is a numeric data type, this is the maximum precision of the column. The precision depends on the definition of the column. If ProviderType is not a numeric data type, this is a null value. </td>
        ///					</tr><tr valign="top">
        ///						<td>NumericScale</td>
        ///						<td> If ProviderType is is DECIMAL or NUMERIC data type, the number of digits to the right of the decimal point. Otherwise, this is a null value. </td>
        ///					</tr><tr valign="top">
        ///						<td>DataType</td>
        ///						<td>Maps to the .NET Framework type of the column.</td>
        ///					</tr><tr valign="top">
        ///						<td>ProviderType</td>
        ///						<td> The indicator of the column's data type. If the data type of the column varies from row to row, this must be Object. This column cannot contain a null value. </td>
        ///					</tr><tr valign="top">
        ///						<td>IsLong</td>
        ///						<td>
        ///						<b>True</b> if the column contains a BLOB that contains very long data; otherwise <b>false</b>. </td>
        ///					</tr><tr valign="top">
        ///						<td>AllowDbNull</td>
        ///						<td>
        ///						<b>True</b> if the column allows null values; otherwise <b>false</b>. </td>
        ///					</tr><tr valign="top">
        ///						<td>IsReadOnly</td>
        ///						<td><b>True</b> if the column cannot be modified; otherwise <b>false</b>.</td>
        ///					</tr><tr valign="top">
        ///						<td>IsRowVersion</td>
        ///						<td> Set if the column contains a persistent row identifier that cannot be written to, and has no meaningful value except to identity the row. </td>
        ///					</tr><tr valign="top">
        ///						<td>IsUnique</td>
        ///						<td>
        ///						<b>true</b> if the the column is one of a set of columns of a unique key. </td>
        ///					</tr><tr valign="top">
        ///						<td>IsKey</td>
        ///						<td>
        ///						<b>true</b> if the the column is one of a set of columns of a primary key. </td>
        ///					</tr><tr valign="top">
        ///						<td>IsAutoIncrement</td>
        ///						<td>
        ///						<b>true</b> if the column assigns values to new rows in fixed increments; otherwise <b>false</b>. The default of this column is <b>false</b>. </td>
        ///					</tr><tr valign="top">
        ///						<td>IsAliased</td>
        ///						<td>
        ///						<b>True</b> if the column name is an alias; otherwise <b>false</b>. </td>
        ///					</tr><tr valign="top">
        ///						<td>IsExpression</td>
        ///						<td>
        ///						<b>True</b> if the column is an expression; otherwise <b>false</b>. </td>
        ///					</tr><tr valign="top">
        ///						<td>BaseSchemaName</td>
        ///						<td> As Firebird doesn't support Schemas this column will be always <b>NULL</b>. </td>
        ///					</tr><tr valign="top">
        ///						<td>BaseCatalogName</td>
        ///						<td> As Firebird doesn't support Catalogs this column will be always <b>NULL</b>. </td>
        ///					</tr><tr valign="top">
        ///						<td>BaseTableName</td>
        ///						<td> The name of the table or view in the data store that contains the column. A null value if the base table name cannot be determined. The default of this column is a null value. </td>
        ///					</tr><tr valign="top">
        ///						<td>BaseColumnName</td>
        ///						<td> The name of the column in the data store. This might be different than the column name returned in the ColumnName column if an alias was used. A null value if the base column name cannot be determined or if the rowset column is derived, but not identical to, a column in the data store. The default of this column is a null value. </td>
        ///					</tr></table></div>
        /// </para>
        /// </remarks>
        public override DataTable GetSchemaTable() { return read.GetSchemaTable(); }
        ///<summary>
        /// Gets the value of the specified column as a String.
        /// </summary>
        /// <param name="i">The zero-based column ordinal.</param>
        /// <returns>A String that is the value of the column minus leading/trailing whitespaces.</returns>
        /// <remarks>
        /// Call IsDBNull to check for null values before calling this method.
        /// </remarks>
        /// <exception cref="InvalidCastException">The specified cast is not valid.</exception>
        public override string GetString(int i) { return read.GetString(i).Trim(); }
        /// <summary>
        /// Gets the value of the specified column in its native format.
        /// </summary>
        /// <param name="i">The zero-based column ordinal.</param>
        /// <returns>The value of the column in its native format.</returns>
        /// <remarks>
        /// This method returns null values as DBNull
        /// </remarks>
        /// <exception cref="InvalidCastException">The specified cast is not valid.</exception>
        public override object GetValue(int i) { return read.GetValue(i); }
        /// <summary>
        /// Gets all of the columns and puts it in an array.
        /// </summary>
        /// <param name="values">The destination array for the values.</param>
        /// <returns>The size of the array.</returns>
        public override int GetValues(object[] values) { return read.GetValues(values); }
        /// <summary>
        /// Gets whether the column contains non-existent of missing values.
        /// </summary>
        /// <param name="i">The zero-based column ordinal.</param>
        /// <returns>True if the specified column value is equivalent to DBNull; otherwise false.</returns>
        public override bool IsDBNull(int i) { return read.IsDBNull(i); }
        /// <summary>
        /// Advances to the next result, when reading the results of batch DSQL statements.
        /// </summary>
        /// <returns><b>True</b> if there are more result sets; otherwise, <b>false</b>.</returns>
        /// <remarks>
        /// Used to process execution of batch DSQL statements.
        /// By default, the data reader is positioned on the first result.
        /// </remarks>
        public override bool NextResult() { return read.NextResult(); }
        /// <summary>
        /// Advances the <see cref="GPDataReader"/> to the next record.
        /// </summary>
        /// <returns><b>True</b> if there are more rows; otherwise, false.</returns>
        /// <remarks>
        /// <para>The default position of the <see cref="GPDataReader"/> is prior to the first record. 
        /// Therefore, you must call <b>Read</b> to begin accessing any data.
        /// </para>
        /// <para>
        /// Only one <b>GPDataReader</b> per Connection can be open at a time, and any attempt to open another one will fail until the first one is closed.
        /// Similarly, while the <b>GPDataReader</b> is in use, the associated Connection is busy serving it until you close it.
        /// </para>
        /// </remarks>
        public override bool Read() { return read.Read(); }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -