Update according to the new return type of
authorVeerapuram Varadhan <v.varadhan@gmail.com>
Tue, 10 Jun 2008 14:00:02 +0000 (14:00 -0000)
committerVeerapuram Varadhan <v.varadhan@gmail.com>
Tue, 10 Jun 2008 14:00:02 +0000 (14:00 -0000)
TdsConnectionPool.GetConnectionPool()

svn path=/trunk/mcs/; revision=105432

mcs/class/System.Data/System.Data.SqlClient/ChangeLog
mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs

index cedf20b15d2abd89f30ff06fadeeb381c4e90cf1..6fc14f739e930ec8f80f02fc985d91b912f86786 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-10  Veerapuram Varadhan  <vvaradhan@novell.com>
+       
+       * SqlConnection.cs: TdsConnectionPool.GetConnectionPool() now returns 
+       IDictionary<TKey, TValue>. 
+       
 2008-06-09  Ankit Jain  <jankit@novell.com>
 
        * SqlCommand.cs: Use Tds instead of ITds now.
index 9255b87f208fbe7ccfde1fc659e9ea8156547dae..41fe74c56fffa7ff958fcd19833179b0f28f2ef5 100644 (file)
@@ -51,6 +51,9 @@ using System.Net;
 using System.Net.Sockets;
 using System.Text;
 using System.Xml;
+#if NET_2_0
+using System.Collections.Generic;
+#endif
 
 namespace System.Data.SqlClient
 {
@@ -1699,7 +1702,11 @@ namespace System.Data.SqlClient
 
                public static void ClearAllPools ()
                {
+#if NET_2_0
+                       IDictionary <string, TdsConnectionPool> pools = SqlConnection.sqlConnectionPools.GetConnectionPool ();
+#else
                        Hashtable pools = SqlConnection.sqlConnectionPools.GetConnectionPool ();
+#endif
                        foreach (TdsConnectionPool pool in pools.Values) {
                                if (pool != null) {
                                        pool.ResetConnectionPool ();