X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=web%2Fmysql;h=2449bc1f4e75b90e95c632205e06b28339a6f636;hb=e9d9e938eaba9b500cc322334aa2688bac01f6a9;hp=23a83129117c0dd3bb664828c0aec4fcae4e0835;hpb=af653b483b9bf8247c85ec0fcfa984e082d1718d;p=mono.git diff --git a/web/mysql b/web/mysql index 23a83129117..2449bc1f4e7 100755 --- a/web/mysql +++ b/web/mysql @@ -14,30 +14,23 @@ -
  • Mono.Data.MySql (deprecated) +
  • Mono.Data.MySql (DEPRECATED)
  • +
  • Bugs with Mono or the data provider should be reported + in Mono's Bugzilla here. If you + do not have Bugzilla user account, it is free + and easy to + create one here.
  • +

    Exploring MySQL - in the Microsoft .NET Environment is an article - by Mr. Venu who is a MySQL AB developer. - -

    Testing for Mono's Mono.Data.MySql and ByteFX's ByteFX.Data.MySQLClient is below. + in the Microsoft .NET Environment is a nice article to read. ** Current Status @@ -45,7 +38,7 @@

    @@ -101,7 +70,7 @@ The current plan for the MySQL data providers: @@ -155,7 +118,7 @@
      using System;
      using System.Data;
    - using ByteFX.Data.MySQLClient;
    + using ByteFX.Data.MySqlClient;
      
      public class Test 
      {
    @@ -167,7 +130,8 @@
               "User ID=myuserid;" +
               "Password=mypassword;";
            IDbConnection dbcon;
    -       dbcon = new MySQLConnection(connectionString);
    +       dbcon = new MySqlConnection(connectionString);
    +       dbcon.Open();
            IDbCommand dbcmd = dbcon.CreateCommand();
            // requires a table to be created named employee
            // with columns firstname and lastname
    @@ -181,8 +145,8 @@
            dbcmd.CommandText = sql;
            IDataReader reader = dbcmd.ExecuteReader();
            while(reader.Read()) {
    -            string FirstName = reader["firstname"];
    -            string LastName = reader["lastname"];
    +            string FirstName = (string) reader["firstname"];
    +            string LastName = (string) reader["lastname"];
                 Console.WriteLine("Name: " + 
                       FirstName + " " + LastName);
            }
    @@ -200,18 +164,9 @@
     	
  • Building C# Example: @@ -224,102 +179,3 @@ mono TestExample.exe -** Testing for Mono's MySQL provider (Mono.Data.MySql) - -