List:Commits« Previous MessageNext Message »
From:mhillyer Date:January 17 2006 8:48pm
Subject:svn commit - mysqldoc@docsrva: r878 - in trunk: refman-4.1 refman-5.0 refman-5.1
View as plain text  
Author: mhillyer
Date: 2006-01-17 21:48:02 +0100 (Tue, 17 Jan 2006)
New Revision: 878

Log:
Correct errors in C# sample.

Modified:
   trunk/refman-4.1/connector-net.xml
   trunk/refman-5.0/connector-net.xml
   trunk/refman-5.1/connector-net.xml

Modified: trunk/refman-4.1/connector-net.xml
===================================================================
--- trunk/refman-4.1/connector-net.xml	2006-01-17 18:43:31 UTC (rev 877)
+++ trunk/refman-4.1/connector-net.xml	2006-01-17 20:48:02 UTC (rev 878)
@@ -2928,20 +2928,20 @@
     cmd.CommandType = CommandType.StoredProcedure;
 
     cmd.Parameters.Add("?lname", "Jones");
-    cmd.Parameters("?lname").Direction = ParameterDirection.Input;
+    cmd.Parameters["?lname"].Direction = ParameterDirection.Input;
 
     cmd.Parameters.Add("?fname", "Tom");
-    cmd.Parameters("?fname").Direction = ParameterDirection.Input;
+    cmd.Parameters["?fname"].Direction = ParameterDirection.Input;
 
     cmd.Parameters.Add("?bday", DateTime.Parse("12/13/1977 2:17:36 PM"));
-    cmd.Parameters("?bday").Direction = ParameterDirection.Input;
+    cmd.Parameters["?bday"].Direction = ParameterDirection.Input;
 
     cmd.Parameters.Add("?empno", MySqlDbType.Int32);
-    cmd.Parameters("?empno").Direction = ParameterDirection.Output;
+    cmd.Parameters["?empno"].Direction = ParameterDirection.Output;
 
     cmd.ExecuteNonQuery();
 
-    MessageBox.Show(cmd.Parameters("?empno").Value);
+    MessageBox.Show(cmd.Parameters["?empno"].Value);
 }
 catch (MySql.Data.MySqlClient.MySqlException ex)
 {

Modified: trunk/refman-5.0/connector-net.xml
===================================================================
--- trunk/refman-5.0/connector-net.xml	2006-01-17 18:43:31 UTC (rev 877)
+++ trunk/refman-5.0/connector-net.xml	2006-01-17 20:48:02 UTC (rev 878)
@@ -2928,20 +2928,20 @@
     cmd.CommandType = CommandType.StoredProcedure;
 
     cmd.Parameters.Add("?lname", "Jones");
-    cmd.Parameters("?lname").Direction = ParameterDirection.Input;
+    cmd.Parameters["?lname"].Direction = ParameterDirection.Input;
 
     cmd.Parameters.Add("?fname", "Tom");
-    cmd.Parameters("?fname").Direction = ParameterDirection.Input;
+    cmd.Parameters["?fname"].Direction = ParameterDirection.Input;
 
     cmd.Parameters.Add("?bday", DateTime.Parse("12/13/1977 2:17:36 PM"));
-    cmd.Parameters("?bday").Direction = ParameterDirection.Input;
+    cmd.Parameters["?bday"].Direction = ParameterDirection.Input;
 
     cmd.Parameters.Add("?empno", MySqlDbType.Int32);
-    cmd.Parameters("?empno").Direction = ParameterDirection.Output;
+    cmd.Parameters["?empno"].Direction = ParameterDirection.Output;
 
     cmd.ExecuteNonQuery();
 
-    MessageBox.Show(cmd.Parameters("?empno").Value);
+    MessageBox.Show(cmd.Parameters["?empno"].Value);
 }
 catch (MySql.Data.MySqlClient.MySqlException ex)
 {

Modified: trunk/refman-5.1/connector-net.xml
===================================================================
--- trunk/refman-5.1/connector-net.xml	2006-01-17 18:43:31 UTC (rev 877)
+++ trunk/refman-5.1/connector-net.xml	2006-01-17 20:48:02 UTC (rev 878)
@@ -2928,20 +2928,20 @@
     cmd.CommandType = CommandType.StoredProcedure;
 
     cmd.Parameters.Add("?lname", "Jones");
-    cmd.Parameters("?lname").Direction = ParameterDirection.Input;
+    cmd.Parameters["?lname"].Direction = ParameterDirection.Input;
 
     cmd.Parameters.Add("?fname", "Tom");
-    cmd.Parameters("?fname").Direction = ParameterDirection.Input;
+    cmd.Parameters["?fname"].Direction = ParameterDirection.Input;
 
     cmd.Parameters.Add("?bday", DateTime.Parse("12/13/1977 2:17:36 PM"));
-    cmd.Parameters("?bday").Direction = ParameterDirection.Input;
+    cmd.Parameters["?bday"].Direction = ParameterDirection.Input;
 
     cmd.Parameters.Add("?empno", MySqlDbType.Int32);
-    cmd.Parameters("?empno").Direction = ParameterDirection.Output;
+    cmd.Parameters["?empno"].Direction = ParameterDirection.Output;
 
     cmd.ExecuteNonQuery();
 
-    MessageBox.Show(cmd.Parameters("?empno").Value);
+    MessageBox.Show(cmd.Parameters["?empno"].Value);
 }
 catch (MySql.Data.MySqlClient.MySqlException ex)
 {

Thread
svn commit - mysqldoc@docsrva: r878 - in trunk: refman-4.1 refman-5.0 refman-5.1mhillyer17 Jan