diff options
author | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2005-09-24 19:44:19 +0400 |
---|---|---|
committer | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2005-09-24 19:44:19 +0400 |
commit | cd5dec364eafea246ebe683118672feeef69c41f (patch) | |
tree | 1d6090f0c4f44b07d54d05dd6e5fc3de2fa2d0ff /mcs/class/System.Data/System.Data.SqlClient | |
parent | 41370f5fb573559f276a83496a9ea1ee5d58d1f0 (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/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs | 8 |
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) { |