Enterprise Library Data Access Application Block
7.0-rc1
The Data Access Application Block abstracts the actual database you are using, and exposes a collection of methods that make it easy to access that database and to perform common tasks.
|
A wrapper to convert data for Oracle for the reader. More...
Public Member Functions | |
override bool | GetBoolean (int index) |
Gets the value of the specified column as a Boolean. More... | |
override byte | GetByte (int index) |
Gets the value of the specified column converted to an 8-bit unsigned integer. More... | |
override Guid | GetGuid (int index) |
Gets the value of the specified field converted to a GUID. More... | |
override short | GetInt16 (int index) |
Gets the value of the specified field converted to a 16-bit signed integer. More... | |
virtual void | Close () |
Closes the T:System.Data.IDataReader Object. More... | |
void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
virtual string | GetName (int i) |
Gets the name for the field to find. More... | |
virtual string | GetDataTypeName (int i) |
Gets the data type information for the specified field. More... | |
virtual Type | GetFieldType (int i) |
Gets the T:System.Type information corresponding to the type of T:System.Object that would be returned from M:System.Data.IDataRecord.GetValue(System.Int32). More... | |
virtual object | GetValue (int i) |
Return the value of the specified field. More... | |
virtual int | GetValues (object[] values) |
Gets all the attribute fields in the collection for the current record. More... | |
virtual int | GetOrdinal (string name) |
Return the index of the named field. More... | |
virtual long | GetBytes (int i, long fieldOffset, byte[] buffer, int bufferoffset, int length) |
Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset. More... | |
virtual char | GetChar (int i) |
Gets the character value of the specified column. More... | |
virtual long | GetChars (int i, long fieldoffset, char[] buffer, int bufferoffset, int length) |
Reads a stream of characters from the specified column offset into the buffer as an array, starting at the given buffer offset. More... | |
virtual int | GetInt32 (int i) |
Gets the 32-bit signed integer value of the specified field. More... | |
virtual long | GetInt64 (int i) |
Gets the 64-bit signed integer value of the specified field. More... | |
virtual float | GetFloat (int i) |
Gets the single-precision floating point number of the specified field. More... | |
virtual double | GetDouble (int i) |
Gets the double-precision floating point number of the specified field. More... | |
virtual string | GetString (int i) |
Gets the string value of the specified field. More... | |
virtual decimal | GetDecimal (int i) |
Gets the fixed-position numeric value of the specified field. More... | |
virtual DateTime | GetDateTime (int i) |
Gets the date and time data value of the specified field. More... | |
virtual IDataReader | GetData (int i) |
Returns an T:System.Data.IDataReader for the specified column ordinal. More... | |
virtual bool | IsDBNull (int i) |
Return whether the specified field is set to null. More... | |
virtual DataTable | GetSchemaTable () |
Returns a T:System.Data.DataTable that describes the column metadata of the T:System.Data.IDataReader. More... | |
virtual bool | NextResult () |
Advances the data reader to the next result, when reading the results of batch SQL statements. More... | |
virtual bool | Read () |
Advances the T:System.Data.IDataReader to the next record. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Close the contained data reader when disposing. More... | |
Properties | |
new OracleDataReader | InnerReader [get] |
Gets the wrapped OracleDataReader. More... | |
virtual int | FieldCount [get] |
Gets the number of columns in the current row. More... | |
virtual int | Depth [get] |
Gets a value indicating the depth of nesting for the current row. More... | |
virtual bool | IsClosed [get] |
Gets a value indicating whether the data reader is closed. More... | |
virtual int | RecordsAffected [get] |
Gets the number of rows changed, inserted, or deleted by execution of the SQL statement. More... | |
A wrapper to convert data for Oracle for the reader.
The wrapper performs type conversions to enable retrieving values for types not supported natively by the OracleDataReader.
The wrapped data reader can be accessed through the OracleDataReaderWrapper.InnerReader property.
|
virtualinherited |
Closes the T:System.Data.IDataReader Object.
Reimplemented in Microsoft.Practices.EnterpriseLibrary.Data.RefCountingDataReader, and Microsoft.Practices.EnterpriseLibrary.Data.Oracle.RefCountingOracleDataReaderWrapper.
|
inherited |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
protectedvirtualinherited |
Close the contained data reader when disposing.
disposing | True if called from Dispose method, false if called from finalizer. Since this class doesn't have a finalizer, this will always be true. |
Reimplemented in Microsoft.Practices.EnterpriseLibrary.Data.RefCountingDataReader, and Microsoft.Practices.EnterpriseLibrary.Data.Oracle.RefCountingOracleDataReaderWrapper.
|
virtual |
Gets the value of the specified column as a Boolean.
index | The zero-based column ordinal. |
Bit data type is mapped to a number in Oracle database. When reading bit data from Oracle database, it will map to 0 as false and everything else as true. This method uses System.Convert.ToBoolean() method for type conversions.
Reimplemented from Microsoft.Practices.EnterpriseLibrary.Data.DataReaderWrapper.
|
virtual |
Gets the value of the specified column converted to an 8-bit unsigned integer.
index | The zero-based column ordinal. |
This method uses System.Convert.ToByte() method for type conversions.
Reimplemented from Microsoft.Practices.EnterpriseLibrary.Data.DataReaderWrapper.
|
virtualinherited |
Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.
i | The zero-based column ordinal. |
fieldOffset | The index within the field from which to start the read operation. |
buffer | The buffer into which to read the stream of bytes. |
bufferoffset | The index for buffer to start the read operation. |
length | The number of bytes to read. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Gets the character value of the specified column.
i | The zero-based column ordinal. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Reads a stream of characters from the specified column offset into the buffer as an array, starting at the given buffer offset.
i | The zero-based column ordinal. |
fieldoffset | The index within the row from which to start the read operation. |
buffer | The buffer into which to read the stream of bytes. |
bufferoffset | The index for buffer to start the read operation. |
length | The number of bytes to read. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Returns an T:System.Data.IDataReader for the specified column ordinal.
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Gets the data type information for the specified field.
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Gets the date and time data value of the specified field.
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Gets the fixed-position numeric value of the specified field.
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Gets the double-precision floating point number of the specified field.
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Gets the T:System.Type information corresponding to the type of T:System.Object that would be returned from M:System.Data.IDataRecord.GetValue(System.Int32).
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Gets the single-precision floating point number of the specified field.
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtual |
Gets the value of the specified field converted to a GUID.
index | The index of the field to find. |
This method will cast the result data Guid data type. In Oracle you must use that as Raw(16) so that this method can convert that to Guid properly.
Reimplemented from Microsoft.Practices.EnterpriseLibrary.Data.DataReaderWrapper.
|
virtual |
Gets the value of the specified field converted to a 16-bit signed integer.
index | The index of the field to find. |
Reimplemented from Microsoft.Practices.EnterpriseLibrary.Data.DataReaderWrapper.
|
virtualinherited |
Gets the 32-bit signed integer value of the specified field.
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Gets the 64-bit signed integer value of the specified field.
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Gets the name for the field to find.
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Return the index of the named field.
name | The name of the field to find. |
|
virtualinherited |
Returns a T:System.Data.DataTable that describes the column metadata of the T:System.Data.IDataReader.
T:System.InvalidOperationException | The T:System.Data.IDataReader is closed. |
|
virtualinherited |
Gets the string value of the specified field.
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Return the value of the specified field.
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Gets all the attribute fields in the collection for the current record.
values | An array of T:System.Object to copy the attribute fields into. |
|
virtualinherited |
Return whether the specified field is set to null.
i | The index of the field to find. |
T:System.IndexOutOfRangeException | The index passed was outside the range of 0 through P:System.Data.IDataRecord.FieldCount. |
|
virtualinherited |
Advances the data reader to the next result, when reading the results of batch SQL statements.
|
virtualinherited |
Advances the T:System.Data.IDataReader to the next record.
|
getinherited |
Gets a value indicating the depth of nesting for the current row.
|
getinherited |
Gets the number of columns in the current row.
|
get |
Gets the wrapped OracleDataReader.
|
getinherited |
Gets a value indicating whether the data reader is closed.
|
getinherited |
Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.