Browse Source

2005-09-24 Sureshkumar T <[email protected]>

	* SqlParameterCollection.cs (AddWithValue): added method. patch
	from [email protected] (Andy Waddell).


svn path=/trunk/mcs/; revision=50675
Sureshkumar T 20 năm trước cách đây
mục cha
commit
cd5dec364e

+ 5 - 0
mcs/class/System.Data/System.Data.SqlClient/ChangeLog

@@ -1,3 +1,8 @@
+2005-09-24  Sureshkumar T  <[email protected]>
+
+	* SqlParameterCollection.cs (AddWithValue): added method. patch
+	from [email protected] (Andy Waddell).
+
 2005-09-21 Senganal T <[email protected]>
 
 	* SqlConnection.cs : 

+ 8 - 0
mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs

@@ -242,6 +242,14 @@ namespace System.Data.SqlClient {
 		{
 			return Add (new SqlParameter (parameterName, value));
 		}
+
+#if NET_2_0
+                public SqlParameter AddWithValue (string parameterName, object value)
+                {
+                        return Add (parameterName, value);
+		}
+#endif // NET_2_0
+
 		
 		public SqlParameter Add (string parameterName, SqlDbType sqlDbType)
 		{