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
-~----------~----~----~----~------~----~------~--~---