Hi,
I'm new to LLBLGen Pro but i like what i've seen so far, specially this support forum which is really good.
I'm trying to use LLBLGen 1.0.2005.1 Beta to access an SqlServer Ce db in a PocketPc. Since LLBLGen cannot read the schema from SqlServerCe I have to create the tables in my DesktopPC then I have to create the exact same tables in the PocketPc. This is really painfull and very error prone since I'm never sure if I made identical tables on DesktopPC and PocketPC. ¿There is another way to develop this kind of applications?
But when I run the application I get the following Exception:
'SD.LLBLGen.Pro.ORMSupportClasses.ORMQueryExecutionException' occurred in SmartDeviceApplication1.exe
Additional information: An exception was caught during the execution of an action query: . Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception.
After watching the exception I got the QueryExecuted:
INSERT INTO "forums_Censorship" ("Word","Replacement") VALUES (?,?)
Parameter: @Word: String. Lenght: 20. Precision: 0. Direction: Input. Value: asshole.
Parameter: @Replacement: String. Lenght: 20. Precision: 0. Scale: 0. Direction: Input. Value: ---.
This is all the code I used:
private void button1_Click(object sender, System.EventArgs e)
{
ForumsCensorshipEntity ent= new ForumsCensorshipEntity("asshole");
DataAccessAdapter a=new DataAccessAdapter("Data Source=\\My Documents\\Forums");
ent.Replacement="---";
try
{
a.SaveEntity(ent); //Exception Here.
}
catch(Exception ex)
{
ex.GetType();
throw ex;
}
}
Thank you in advance.