Retrieving Objects Not Working Since Update

Gentle.NET Forum

Retrieving Objects Not Working Since Update

Postby Rolo on Fri Mar 31, 2006 11:12 am

Hiya.

I'm having some probs since upgrading to the newest version of Gentle this morning.

The following code, which worked previously, is now throwing a SQLException, \"Incorrect syntax near the keyword 'from'.\"

Code: Select all
SqlBuilder sb = new SqlBuilder(StatementType.Select, typeof(Page));

SqlStatement stmt = sb.GetStatement(true);

return (ArrayList)ObjectFactory.GetCollection(typeof(Page), stmt.Execute());


If I step through in the debugger, it looks as though the SqlBuilder is generating the SQL \"select from Page\". Ie, with no field names, as it did previously.

Do I need to specify the fields or something?
I haven't seen anyone else having problems, so should I perhaps be retrieving objects in a different way?

Many thanks for any help. Nice work on Gentle.NET. I'm really liking the look of it.

Rolo.
Rolo
Lurker
 
Posts: 1
Joined: Fri Mar 31, 2006 11:02 am

Postby angelo on Sun Apr 02, 2006 6:15 pm

Hi Rolo,

This looks like a problem with Gentle.NET itself, not the MyGeneration Template. You might try reporting this on the SourceForge forum for Gentle.NET - over here: http://sourceforge.net/forum/forum.php?forum_id=352276.

Don't forget to include your Gentle.NET version number. Morten Mertner
should be able to help out.

Angelo
Vision without action is a daydream, action without vision is a nightmare...
User avatar
angelo
Major General
 
Posts: 159
Joined: Mon Jul 12, 2004 8:17 pm
Location: Best, The Netherlands


Return to Gentle.NET

Who is online

Users browsing this forum: No registered users and 1 guest

cron