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>2005-03-03 07:30:14 +0300
committerSureshkumar T <suresh@mono-cvs.ximian.com>2005-03-03 07:30:14 +0300
commit97133615a00d4646ff1ef5b5f054515c2fc792b1 (patch)
tree72d1bd89094252b61749746c97da58970e234a62 /mcs/class/System.Data/System.Data.ProviderBase
parenta4236efc5e7daf75f3bb06945abf81912fc4da04 (diff)
In System.Data.ProviderBase:
2005-03-02 Sureshkumar T <tsureshkumar@novell.com> * DbConnectionBase.cs: CreateDbCommand: assign connection to the created command. In .: 2005-03-02 Sureshkumar T <tsureshkumar@novell.com> * System.Data.dll.sources: Added System.Data.SqlClient/SqlConnectionFactory.cs. In System.Data.SqlClient: 2005-03-03 Sureshkumar T <tsureshkumar@novell.com> * SqlClientFactory.cs: While creating command, create using DbConnectionFactory as DbConnectionBase.CreateDbCommand needs to have a connection factory. * SqlConnection.cs: Added an internal constructor which takes DbConnectionFactory. * SqlConnectionFactory.cs: Added. Concrete class for abstract factory DbConnectionFactory. svn path=/trunk/mcs/; revision=41382
Diffstat (limited to 'mcs/class/System.Data/System.Data.ProviderBase')
-rwxr-xr-xmcs/class/System.Data/System.Data.ProviderBase/ChangeLog5
-rw-r--r--mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs4
2 files changed, 8 insertions, 1 deletions
diff --git a/mcs/class/System.Data/System.Data.ProviderBase/ChangeLog b/mcs/class/System.Data/System.Data.ProviderBase/ChangeLog
index 88301fc8e76..9d1a83022be 100755
--- a/mcs/class/System.Data/System.Data.ProviderBase/ChangeLog
+++ b/mcs/class/System.Data/System.Data.ProviderBase/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-02 Sureshkumar T <tsureshkumar@novell.com>
+
+ * DbConnectionBase.cs: CreateDbCommand: assign connection to the
+ created command.
+
2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
* DbConnectionBase.cs: Implement Dispose Pattern
diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs
index 377432bb4e5..b88ffc583be 100644
--- a/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs
+++ b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs
@@ -155,7 +155,9 @@ namespace System.Data.ProviderBase {
protected override DbCommand CreateDbCommand ()
{
- return (DbCommand) ConnectionFactory.ProviderFactory.CreateCommand ();
+ DbCommand cmd = (DbCommand) ConnectionFactory.ProviderFactory.CreateCommand ();
+ cmd.Connection = this;
+ return cmd;
}
protected override void Dispose (bool disposing)