I hate to say this because so much of Mono is great, but you're probably wasting your time using DbLinq. It's very unstable and also hasn't had any active development in a long time. I wasted many hours on DbLinq and ultimately decided to go with a commercial product I've enjoyed much success using Devart. There is another free option that might be worth your while but I have not worked with it myself so I can't speak to its stability: http://bltoolkit.net/
Good luck. -Abe On Tue, May 24, 2011 at 8:02 PM, James Darbyshire <[email protected]> wrote: > Hi all, > I am trying to create a MySQL LINQ Class using Mono Develop's DB mapping > tool, and having a problem. > When I try and create the class I get the following error: > Cannot create LINQ class > > MonoDevelop.Database.Sql.SqlMetalExecException: sqlmetal: Object reference > not set to an instance of an object > The DB connection works. The MySQL DLL's are installed in the GAC > I am using Monodevelop 2.4 on Mac OSX with the latest Mono runtime (2.10.x) > If I run SqlMetal from terminal with command line arguments to generate a > class I get Abort trap error message: > sudo mono sqlmetal.exe -u user -p *** -s localhost --provider=MySQL -d > Dbname -code=Output.cs > DbLinq Database mapping generator 2008 version 0.20 > for Microsoft (R) .NET Framework version 3.5 > Distributed under the MIT licence (http://linq.to/db/license) >>>> Reading schema from MySQL database > <<< writing C# classes in file 'Output.cs' > Abort trap > Any help would be greatly appreciated. > Thanks, > JD > -- > Regards, > > James Darbyshire > [email protected] > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
