That's probably not related to x64. Internally, DbLinq use custom
expressions to identify its own entities (such as tables, columns, etc.).
When it splits Expressions into SQL parts and CLR parts, all CLR parts are
in theory non-custom Expressions... If everything works fine. But in some
cases, some custom expressions remain, and of course, the Expression
compiler doesn't know how to handle them, because they don't make sense.
This doesn't help, but only explains.

Maybe you could help by trying to isolate what causes the problem, and what
needs to be removed to work around it.

Pascal.

jabber/gtalk: [email protected]
msn: [email protected]



On Fri, Feb 27, 2009 at 16:10, [email protected] <
[email protected]> wrote:

>
> I am trying to use dbLinq for sqlite.  I ran the example project on a
> 32 bit computer and everything went fine - save for the empty database
> that was included in the example.
>
> Now I am trying to use this on a 64 bit computer.  I ran into one
> issue regarding building as x86 which I found the solution to.  But
> now in the following code, I get an exception:
>
> var q2 = from p in db.Products orderby p.ProductName select
> p;
>            foreach (var v in q2)
>                ObjectDumper.Write(v);
>            Console.WriteLine("Press enter to continue.");
>            Console.ReadLine();
>
> I know the query works and q2 is filled with the expected rows.  The
> problem is in the foreach.  The exception is:
>
> Unhandled Expression Type: 1012
>
> Here is the stack trace:
>
>  at System.Linq.Expressions.ExpressionVisitor.Visit(Expression exp)
>   at System.Linq.Expressions.ExpressionCompiler.Hoister.Hoist
> (CompileScope scope)
>   at System.Linq.Expressions.ExpressionCompiler.GenerateLambda
> (LambdaExpression lambda)
>   at System.Linq.Expressions.ExpressionCompiler.CompileDynamicLambda
> (LambdaExpression lambda)
>   at System.Linq.Expressions.LambdaExpression.Compile()
>   at
>
> DbLinq.Data.Linq.Sugar.ExpressionMutator.ExpressionMutatorExtensions.Evaluate
> (Expression expression) in C:\\Documents and Settings\\Administrator\
> \Desktop\\DbLinq-0.18\\src\\DbLinq\\Data\\Linq\\Sugar\
> \ExpressionMutator\\ExpressionMutatorExtensions.cs:line 147
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to