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-09-24 19:44:19 +0400
committerSureshkumar T <suresh@mono-cvs.ximian.com>2005-09-24 19:44:19 +0400
commitcd5dec364eafea246ebe683118672feeef69c41f (patch)
tree1d6090f0c4f44b07d54d05dd6e5fc3de2fa2d0ff /mcs/class/System.Data/System.Data.SqlClient
parent41370f5fb573559f276a83496a9ea1ee5d58d1f0 (diff)
2005-09-24 Sureshkumar T <tsureshkumar@novell.com>
* SqlParameterCollection.cs (AddWithValue): added method. patch from awaddell@fnfr.com (Andy Waddell). svn path=/trunk/mcs/; revision=50675
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlClient')
-rw-r--r--mcs/class/System.Data/System.Data.SqlClient/ChangeLog5
-rw-r--r--mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs8
2 files changed, 13 insertions, 0 deletions
diff --git a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
index 70d644bf83a..b44cf579453 100644
--- a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
+++ b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-24 Sureshkumar T <tsureshkumar@novell.com>
+
+ * SqlParameterCollection.cs (AddWithValue): added method. patch
+ from awaddell@fnfr.com (Andy Waddell).
+
2005-09-21 Senganal T <tsenganal@novell.com>
* SqlConnection.cs :
diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs
index b56304c1556..f34ccc3b0ee 100644
--- a/mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs
+++ b/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)
{