[Mono-bugs] [Bug 76181][Min] New - proposed patch: System.Data.SqlClient.SqlParameterCollection.AddWithValue missing

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Sep 21 13:30:52 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by awaddell at fnfr.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76181

--- shadow/76181	2005-09-21 13:30:52.000000000 -0400
+++ shadow/76181.tmp.20239	2005-09-21 13:30:52.000000000 -0400
@@ -0,0 +1,67 @@
+Bug#: 76181
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Sys.Data.SqlClient
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: awaddell at fnfr.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: proposed patch: System.Data.SqlClient.SqlParameterCollection.AddWithValue missing
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+public SqlParameter AddWithValue(string parameterName, object value)
+
+missing from System.Data.SqlClient namespace
+
+Steps to reproduce the problem:
+1. 
+2. 
+3. 
+
+Actual Results:
+
+
+Expected Results:
+
+
+How often does this happen? 
+
+
+Additional Information:
+I don't have commit access.
+
+Proposed patch:
+Index: mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs
+===================================================================
+--- mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs 
+     (revision 50270)
++++ mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs 
+     (working copy)
+@@ -258,6 +258,14 @@
+                        return Add (new SqlParameter (parameterName,
+sqlDbType, size, sourceColumn));
+                }
+ 
++#if NET_2_0
++                public SqlParameter AddWithValue(string parameterName,
+object value)
++                {
++                        return Add(new SqlParameter(parameterName, value));
++                }
++
++#endif // NET_2_0
++
+                public 
+ #if NET_2_0
+                override


More information about the mono-bugs mailing list