Files
mono/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs
T
Daniel Morgan 2744f2972e 2002-04-28 Daniel Morgan <[email protected]>
* System.Data/DataRelation.cs
	* System.Data/ForeignKeyConstraint.cs
	* System.Data/UniqueConstraint.cs: added more stubs

	* System.Data/DataTableRelationCollection.cs: added back to cvs
	and modified for compile errors.  DataRelationCollection is an
	abstract class and there must be a class that implements for
	DataTable/DataSet.  DataTableRelationCollection was changed
	to an internal class.

	* System.Data.build: modified - new files added
	also wanted to include files/classes in the build
	so we can get a compilable forward read only result set.
	It compiles now using csc/nant with warnings, but this
	is a start for adding functionality for the result set.
	Classes associated with/and DataSet are still excluded.

	* TODO: modified - updated to do list for System.Data

	* System.Data/Constraint.cs
	* System.Data/ConstraintCollection.cs
	* System.Data/DataRelationCollection.cs
	* System.Data/DataRow.cs
	* System.Data/DataRowChangeEventArgs.cs
	* System.Data/DataRowCollection.cs
	* System.Data/DataTable.cs
	* System.Data/DataTableCollection.cs
	* System.Data/InternalDataCollectionBase.cs
	* System.Data/PropertyCollection.cs: modified -
	changes to compile SqlDataReader/DataTable and
	dependencies

	* System.Data/IDbCommand.cs
	* System.Data.SqlClient/SqlCommand.cs: modified -
	un-commented overloaded methods ExecuteReader
	which returns a SqlDataReader

svn path=/trunk/mcs/; revision=4098
2002-04-28 03:59:01 +00:00

262 lines
4.2 KiB
C#

//
// System.Data.SqlClient.SqlDataReader.cs
//
// Author:
// Rodrigo Moya ([email protected])
// Daniel Morgan ([email protected])
//
// (C) Ximian, Inc 2002
//
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
namespace System.Data.SqlClient
{
/// <summary>
/// Provides a means of reading one or more forward-only streams
/// of result sets obtained by executing a command
/// at a SQL database.
/// </summary>
//public sealed class SqlDataReader : MarshalByRefObject,
// IEnumerable, IDataReader, IDisposable, IDataRecord
public sealed class SqlDataReader : IEnumerable,
IDataReader, IDataRecord
{
#region Fields
private DataTable table = null;
#endregion // Fields
#region Public Methods
[MonoTODO]
public void Close()
{
throw new NotImplementedException ();
}
[MonoTODO]
public DataTable GetSchemaTable()
{
throw new NotImplementedException ();
}
[MonoTODO]
public bool NextResult()
{
throw new NotImplementedException ();
}
[MonoTODO]
public bool Read()
{
throw new NotImplementedException ();
}
[MonoTODO]
public byte GetByte(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public long GetBytes(int i, long fieldOffset,
byte[] buffer, int bufferOffset,
int length)
{
throw new NotImplementedException ();
}
[MonoTODO]
public char GetChar(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public long GetChars(int i, long fieldOffset,
char[] buffer, int bufferOffset,
int length)
{
throw new NotImplementedException ();
}
[MonoTODO]
public IDataReader GetData(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public string GetDataTypeName(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public DateTime GetDateTime(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public decimal GetDecimal(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public double GetDouble(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public Type GetFieldType(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public float GetFloat(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public Guid GetGuid(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public short GetInt16(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public int GetInt32(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public long GetInt64(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public string GetName(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public int GetOrdinal(string name)
{
throw new NotImplementedException ();
}
[MonoTODO]
public string GetString(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public object GetValue(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public int GetValues(object[] values)
{
throw new NotImplementedException ();
}
[MonoTODO]
public bool IsDBNull(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public bool GetBoolean(int i)
{
throw new NotImplementedException ();
}
[MonoTODO]
public IEnumerator GetEnumerator() {
throw new NotImplementedException ();
}
#endregion // Public Methods
#region Destructors
[MonoTODO]
public void Dispose () {
}
[MonoTODO]
~SqlDataReader() {
}
#endregion // Destructors
#region Properties
public int Depth {
[MonoTODO]
get {
throw new NotImplementedException ();
}
}
public bool IsClosed {
[MonoTODO]
get {
throw new NotImplementedException ();
}
}
public int RecordsAffected {
[MonoTODO]
get {
throw new NotImplementedException ();
}
}
public int FieldCount {
[MonoTODO]
get {
throw new NotImplementedException ();
}
}
public object this[string name] {
[MonoTODO]
get {
throw new NotImplementedException ();
}
}
public object this[int i] {
[MonoTODO]
get
{
throw new NotImplementedException ();
}
}
#endregion // Properties
}
}