+2004-11-24 Sureshkumar T <tsureshkumar@novell.com>
+
+ * DbProviderSupportedClasses.cs: Added correct enum values.
+ * DbConnection.cs: Missing virtual method EnlistTransaction Added.
+ * DbCommand.cs: Implemented ProviderFactory base factory methods.
+
2004-11-22 Sureshkumar T <tsureshkumar@novell.com>
* DbConnectionStringBuilder.cs: Class for helping creation of db
}
protected abstract DbConnection DbConnection { get; set; }
- protected abstract DbParameterCollection DbParameterCollection { get; set; }
+ protected abstract DbParameterCollection DbParameterCollection { get; }
protected abstract DbTransaction DbTransaction { get; set; }
public abstract bool DesignTimeVisible { get; set; }
}
public abstract int ExecuteNonQuery ();
- public DbDataReader ExecutePageReader (CommandBehavior behavior, int startRecord, int maxRecords)
+
+ public DbDataReader ExecutePageReader (CommandBehavior behavior, int startRecord, int maxRecords)
{
return ExecuteDbPageReader (behavior, startRecord, maxRecords);
}
- [MonoTODO]
public DbDataReader ExecuteReader ()
{
- throw new NotImplementedException ();
+ return ExecuteDbDataReader (CommandBehavior.Default);
}
- [MonoTODO]
public DbDataReader ExecuteReader (CommandBehavior behavior)
{
- throw new NotImplementedException ();
+ return ExecuteDbDataReader (behavior);
}
public abstract object ExecuteScalar ();
protected abstract DbCommand CreateDbCommand ();
+ [MonoTODO]
+ public virtual void EnlistTransaction (ITransaction transaction)
+ {
+ throw new NotImplementedException ();
+ }
+
[MonoTODO]
public virtual void EnlistDistributedTransaction (ITransaction transaction)
{
// System.Data.Common.DbProviderSupportedClasses.cs
//
// Author:
+// Sureshkumar T (tsureshkumar@novell.com)
// Tim Coleman (tim@timcoleman.com)
//
// Copyright (C) Tim Coleman, 2003
namespace System.Data.Common {
public enum DbProviderSupportedClasses
{
- CodeAccessPermission,
- DbCommand,
- DbCommandBuilder,
- DbCommandSet,
- DbConnection,
- DbDataAdapter,
- DbDataSourceEnumerator,
- DbParameter,
- DbTable,
- None
+ CodeAccessPermission = 0x80,
+ DbCommand = 0x02,
+ DbCommandBuilder = 0x10,
+ DbCommandSet = 0x100,
+ DbConnection = 0x01,
+ DbConnectionStringBuilder = 0x08,
+ DbDataAdapter = 0x20,
+ DbDataSourceEnumerator = 0x40,
+ DbParameter = 0x04,
+ None = 0x00
}
}
+2004-11-24 Sureshkumar T <tsureshkumar@novell.com>
+
+ * DbParameterCollectionBase.cs: Class name changed according to
+ the documentation
+ * DbDataReaderBase.cs: Added internal constructor to satisfy
+ SqlDataReader, which takes command object.
+ * DbConnectionBase.cs: Added additional methods overriding
+ DbConnection
+
2003-12-28 Tim Coleman <tim@timcoleman.com>
* DbParameterBase.cs:
Correct type of ValueSize method to int
{
this.connectionFactory = connectionFactory;
}
+
+ protected DbConnectionBase ()
+ {
+
+ }
#endregion // Constructors
throw new NotImplementedException ();
}
+ [MonoTODO]
+ public override void EnlistTransaction (ITransaction transaction)
+ {
+ throw new NotImplementedException ();
+ }
+
[MonoTODO]
protected virtual DbMetaDataFactory GetMetaDataFactory (DbConnectionInternal internalConnection)
{
throw new NotImplementedException ();
}
+ [MonoTODO]
+ public override DataTable GetSchema ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override DataTable GetSchema (string collectionName)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override DataTable GetSchema (string collectionName, string [] restrictionValues)
+ {
+ throw new NotImplementedException ();
+ }
+
#endregion // Methods
}
}
this.behavior = behavior;
}
+ internal DbDataReaderBase (DbCommand command)
+ {
+
+ }
+
#endregion // Constructors
#region Properties
using System.Data.Common;
namespace System.Data.ProviderBase {
- public abstract class DbParameterCollectionBase : DbParameterCollection
+ public abstract class DbParameterBaseCollection : DbParameterCollection
{
#region Fields
#region Constructors
[MonoTODO]
- protected DbParameterCollectionBase ()
+ protected DbParameterBaseCollection ()
{
list = new ArrayList ();
}