Hello,
I'm a newbee to IdeaBlade and downloaded the express edition. I have generated a model from an Access database. Generation went well and connection is correct.
To test IdeaBlade I created a small WinForms application to show all the entities in a datagrid.
But I get an exception:
"Query contains syntax error. A query component is incomplete".
Below the code snippet of the code:
[
DataObject]
public class DataService : IDataService
{
private PersistenceManager _persistenceManager;
protected PersistenceManager PersistenceManager
{
get
{
if (_persistenceManager == null)
{
_persistenceManager =
new PersistenceManager();
}
return _persistenceManager;
}
}
public DataService()
{
PersistenceManager.Connect();
}
[
DataObjectMethod(DataObjectMethodType.Select, true)]
public EntityList<Book> GetBooks()
{
EntityList<Book> result = null;
try
{
result = PersistenceManager.GetEntities<
Book>();
}
catch (PersistenceServerException exc)
{
System.Windows.Forms.
MessageBox.Show(exc.Message);
}
return result;
}
}
Edited by hfeijt - 18-Oct-2007 at 1:32am