Re: [Mono-devel-list] ByteFX mysql
Yes, in fact the actual dll is missing :) I'm going to compile it. Thanks everybody! Stefano Il giorno lun, 08/08/2005 alle 15.23 +0100, Paul F. Johnson ha scritto: > Hi, > > > >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. > > Have a look in /usr/lib/mono. It will be in either the 1.0 or 2.0 directory. > > Personally, I would either install ByteFX.Data via the RPM or compile it up > from the sources. I would not really want to mix something from Mono with > something from dev.mysql.com, nor should it be suggested. > > TTFN > > Paul ___ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.beta.messenger.yahoo.com ___ 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
Hi, > >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. Have a look in /usr/lib/mono. It will be in either the 1.0 or 2.0 directory. Personally, I would either install ByteFX.Data via the RPM or compile it up from the sources. I would not really want to mix something from Mono with something from dev.mysql.com, nor should it be suggested. TTFN Paul -- "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
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
Re: [Mono-devel-list] ByteFX mysql
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
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=;"+ "User ID=;"+ "Password=;"; IDbConnection dbcon; dbcon = new MySqlConnection(connectionString); dbcon.Open(); IDbCommand dbcmd = dbcon.CreateCommand(); string sql = "SELECT * FROM WHERE 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
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
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