List:Commits« Previous MessageNext Message »
From:rburnett Date:February 1 2007 6:43pm
Subject:Connector/NET commit: r579 - in branches/5.0: . Driver/Source
View as plain text  
Modified:
   branches/5.0/CHANGES
   branches/5.0/Driver/Source/parameter_collection.cs
Log:
Added MySqlParameterCollection.AddWithValue and marked Add(name, value) as obsolete.

Modified: branches/5.0/CHANGES
===================================================================
--- branches/5.0/CHANGES	2007-02-01 04:25:26 UTC (rev 578)
+++ branches/5.0/CHANGES	2007-02-01 17:43:41 UTC (rev 579)
@@ -25,6 +25,7 @@
   Fixed problem that prevented use of SchemaOnly or SingleRow command behaviors with
        sprocs or prepared statements
   Assembly now properly appears in the Visual Studio 2005 Add/Remove Reference dialog
+  Added MySqlParameterCollection.AddWithValue and marked the Add(name, value) method as
obsolete
   
 Version 5.0.3 12-31-2006
 

Modified: branches/5.0/Driver/Source/parameter_collection.cs
===================================================================
--- branches/5.0/Driver/Source/parameter_collection.cs	2007-02-01 04:25:26 UTC (rev 578)
+++ branches/5.0/Driver/Source/parameter_collection.cs	2007-02-01 17:43:41 UTC (rev 579)
@@ -138,11 +138,17 @@
 		/// <param name="parameterName">The name of the parameter.</param>
 		/// <param name="value">The <see cref="MySqlParameter.Value"/> of the
<see cref="MySqlParameter"/> to add to the collection.</param>
 		/// <returns>The newly added <see cref="MySqlParameter"/>
object.</returns>
-		public MySqlParameter Add(string parameterName, object value)
+		[Obsolete("Add(String parameterName, Object value) has been deprecated.  Use
AddWithValue(String parameterName, Object value)")]
+        public MySqlParameter Add(string parameterName, object value)
 		{
 			return Add(new MySqlParameter(parameterName, value));
 		}
 
+        public MySqlParameter AddWithValue(string parameterName, object value)
+        {
+            return Add(new MySqlParameter(parameterName, value));
+        }
+
 		/// <summary>
 		/// Adds a <see cref="MySqlParameter"/> to the <see
cref="MySqlParameterCollection"/> given the parameter name and the data type.
 		/// </summary>

Thread
Connector/NET commit: r579 - in branches/5.0: . Driver/Sourcerburnett1 Feb