diff options
author | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2005-03-03 07:30:14 +0300 |
---|---|---|
committer | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2005-03-03 07:30:14 +0300 |
commit | 97133615a00d4646ff1ef5b5f054515c2fc792b1 (patch) | |
tree | 72d1bd89094252b61749746c97da58970e234a62 /mcs/class/System.Data/System.Data.ProviderBase | |
parent | a4236efc5e7daf75f3bb06945abf81912fc4da04 (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-x | mcs/class/System.Data/System.Data.ProviderBase/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs | 4 |
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) |