Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSureshkumar T <suresh@mono-cvs.ximian.com>2004-11-24 12:38:48 +0300
committerSureshkumar T <suresh@mono-cvs.ximian.com>2004-11-24 12:38:48 +0300
commit38626228f60ea7d65650edbf74d77c9098d0a324 (patch)
treef059c67d32a4aa0d94daa50eb3c93c9e46a05b76 /mcs/class/System.Data/System.Data.ProviderBase
parent65255685073e2e559630c0dfc5f5865e22e93aca (diff)
2004-11-24 Sureshkumar T <tsureshkumar@novell.com>
Changes in Base class implementaitons for Provider Factory Implementation. In System.Data.Common: * DbProviderSupportedClasses.cs: Added correct enum values. * DbConnection.cs: Missing virtual method EnlistTransaction Added. * DbCommand.cs: Implemented ProviderFactory base factory methods. In System.Data.ProviderBase: * 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 svn path=/trunk/mcs/; revision=36458
Diffstat (limited to 'mcs/class/System.Data/System.Data.ProviderBase')
-rwxr-xr-xmcs/class/System.Data/System.Data.ProviderBase/ChangeLog9
-rw-r--r--mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs29
-rw-r--r--mcs/class/System.Data/System.Data.ProviderBase/DbDataReaderBase.cs5
-rw-r--r--mcs/class/System.Data/System.Data.ProviderBase/DbParameterCollectionBase.cs4
4 files changed, 45 insertions, 2 deletions
diff --git a/mcs/class/System.Data/System.Data.ProviderBase/ChangeLog b/mcs/class/System.Data/System.Data.ProviderBase/ChangeLog
index fc65d1a1f6b..a4926fb7407 100755
--- a/mcs/class/System.Data/System.Data.ProviderBase/ChangeLog
+++ b/mcs/class/System.Data/System.Data.ProviderBase/ChangeLog
@@ -1,3 +1,12 @@
+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
diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs
index cb3e83afcf3..62b413bd99b 100644
--- a/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs
+++ b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs
@@ -57,6 +57,11 @@ namespace System.Data.ProviderBase {
{
this.connectionFactory = connectionFactory;
}
+
+ protected DbConnectionBase ()
+ {
+
+ }
#endregion // Constructors
@@ -164,6 +169,12 @@ namespace System.Data.ProviderBase {
throw new NotImplementedException ();
}
+ [MonoTODO]
+ public override void EnlistTransaction (ITransaction transaction)
+ {
+ throw new NotImplementedException ();
+ }
+
[MonoTODO]
protected virtual DbMetaDataFactory GetMetaDataFactory (DbConnectionInternal internalConnection)
{
@@ -182,6 +193,24 @@ namespace System.Data.ProviderBase {
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
}
}
diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbDataReaderBase.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbDataReaderBase.cs
index e5e5f05fe22..67384d05b8c 100644
--- a/mcs/class/System.Data/System.Data.ProviderBase/DbDataReaderBase.cs
+++ b/mcs/class/System.Data/System.Data.ProviderBase/DbDataReaderBase.cs
@@ -52,6 +52,11 @@ namespace System.Data.ProviderBase {
this.behavior = behavior;
}
+ internal DbDataReaderBase (DbCommand command)
+ {
+
+ }
+
#endregion // Constructors
#region Properties
diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbParameterCollectionBase.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbParameterCollectionBase.cs
index 7f853787be9..5ec78e949f8 100644
--- a/mcs/class/System.Data/System.Data.ProviderBase/DbParameterCollectionBase.cs
+++ b/mcs/class/System.Data/System.Data.ProviderBase/DbParameterCollectionBase.cs
@@ -36,7 +36,7 @@ using System.Collections;
using System.Data.Common;
namespace System.Data.ProviderBase {
- public abstract class DbParameterCollectionBase : DbParameterCollection
+ public abstract class DbParameterBaseCollection : DbParameterCollection
{
#region Fields
@@ -47,7 +47,7 @@ namespace System.Data.ProviderBase {
#region Constructors
[MonoTODO]
- protected DbParameterCollectionBase ()
+ protected DbParameterBaseCollection ()
{
list = new ArrayList ();
}