RE: [Mono-devel-list] ByteFX mysql

2005-08-08 Thread Colt D. Majkrzak
In the project itself go
Using ByteFX.Data


When compiling type
Mcs -r:ByteFX.Data myfile.cs

That will compile the project with ByteFX.Data as a reference.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stefano
Incontri
Sent: Monday, August 08, 2005 3:43 PM
To: Mono-devel-list@lists.ximian.com
Subject: [Mono-devel-list] ByteFX mysql

Hi All,
I'm a newby with C# and Mono... maybe this is a stupid question : I'm
willing to use ByteFX mysql connector, but I don't know how to import or
reference it in my project, the 'using' keyword doesn't find it.
The message is 'Main.cs(4) error CS0246: The namespace `ByteFx.Data' can
not be found (missing assembly reference?)'.

Thanks
Stefano






___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] ByteFX mysql

2005-08-08 Thread Kamil Skalski
You must modify the build process of your project. What are you using?
Makefiles, MonoDevelop, Visual Studio?

Anyway, you must add ByteFX to referenced assemblies, either by
modifying compilation scripts to include
mcs sources.cs  -r ByteFX.Data.dll

or add referenced assembly in your IDE

2005/8/8, Stefano Incontri [EMAIL PROTECTED]:
 Hi All,
 I'm a newby with C# and Mono... maybe this is a stupid question : I'm
 willing to use ByteFX mysql connector, but I don't know how to import or
 reference it in my project, the 'using' keyword doesn't find it.
 The message is 'Main.cs(4) error CS0246: The namespace `ByteFx.Data' can
 not be found (missing assembly reference?)'.
 
 Thanks
 Stefano
 
 
 
 
 
 
 ___
 Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
 http://mail.yahoo.it
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 


-- 
Kamil Skalski
http://nazgul.omega.pl
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] ByteFX mysql

2005-08-08 Thread Paul F. Johnson
Hi,

 The message is 'Main.cs(4) error CS0246: The namespace `ByteFx.Data' can
 not be found (missing assembly reference?)'.

mcs filename.cs -r:ByteFX.Data

My sql and C# is really easy - have a look at this

using System;
using System.Data
using ByteFX.Data.MySqlClient;

public class mysqlc
{
  public static void Main(string [] args)
  {
 if (args[0] == )
 {
Console.WriteLine(I need a search criteria);
return;
 }
 string connectionString = Server=localhost;+
Database=database_name;+
User ID=user_id;+
Password=password;;
 IDbConnection dbcon;
 dbcon = new MySqlConnection(connectionString);
 dbcon.Open();
 IDbCommand dbcmd = dbcon.CreateCommand();
 string sql = SELECT * FROM tablename WHERE search LIKE
'%%+args[0]+%%%';
 dbcmd.CommandText = sql;
 IDataReader reader = dbcmd.ExecuteReader();
 while (reader.Read())
 {
   // do what you have to here
 }
 reader.Close();
 reader = null;
 dbcmd.Dispose();
 dbcmd = null;
 dbcon.Close();
 dbcon = null;
  }
}

-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority - Dr
Who


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] ByteFX mysql

2005-08-08 Thread Stefano Incontri
Successfull in Visual Studio .NET 1.1 (adding the dll to the reference)
but not in linux by command line, I guess the path is missing
(referencePath?)...

Il giorno lun, 08/08/2005 alle 15.46 +0200, Kamil Skalski ha scritto:
 You must modify the build process of your project. What are you using?
 Makefiles, MonoDevelop, Visual Studio?
 
 Anyway, you must add ByteFX to referenced assemblies, either by
 modifying compilation scripts to include
 mcs sources.cs  -r ByteFX.Data.dll
 
 or add referenced assembly in your IDE
 
 2005/8/8, Stefano Incontri [EMAIL PROTECTED]:
  Hi All,
  I'm a newby with C# and Mono... maybe this is a stupid question : I'm
  willing to use ByteFX mysql connector, but I don't know how to import or
  reference it in my project, the 'using' keyword doesn't find it.
  The message is 'Main.cs(4) error CS0246: The namespace `ByteFx.Data' can
  not be found (missing assembly reference?)'.
  
  Thanks
  Stefano
  
  
  
  
  
  
  ___
  Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
  http://mail.yahoo.it
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
  
 
 






___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-devel-list] ByteFX mysql

2005-08-08 Thread Pascal Fresnay

Stefano Incontri a écrit :


Successfull in Visual Studio .NET 1.1 (adding the dll to the reference)
but not in linux by command line, I guess the path is missing
(referencePath?)...
 


Probably you d'ont have ByteFX.Data.dll installed.
You can find it here :
http://dev.mysql.com/downloads/connector/net/1.0.html
To install, unzip binary, then :
gacutil -i ByteFX.data.dll
This line will install MySQL connector in the Global assembly cache, so 
when you reference it with -r:, compiler will find it.



Il giorno lun, 08/08/2005 alle 15.46 +0200, Kamil Skalski ha scritto:
 


You must modify the build process of your project. What are you using?
Makefiles, MonoDevelop, Visual Studio?

Anyway, you must add ByteFX to referenced assemblies, either by
modifying compilation scripts to include
mcs sources.cs  -r ByteFX.Data.dll

or add referenced assembly in your IDE

2005/8/8, Stefano Incontri [EMAIL PROTECTED]:
   


Hi All,
I'm a newby with C# and Mono... maybe this is a stupid question : I'm
willing to use ByteFX mysql connector, but I don't know how to import or
reference it in my project, the 'using' keyword doesn't find it.
The message is 'Main.cs(4) error CS0246: The namespace `ByteFx.Data' can
not be found (missing assembly reference?)'.

Thanks
Stefano






___
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

 

   








___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


 



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list