Home
Options

What's wrong with this query

Hi,
I have an error message I don't understand with some of my queries.
I tried to simplify it as much as possible to reproduce the error:

from c in Employees
from p in Employees
select new { c, p}


This query (admitedly stupid) works fine in VS by returns a weird error message in LinqPad.
The message is :
NotSupportedException: Impossible to create a constant value of type « DAL.Employee ». Only primitive types or enums are allowed in this context. (Translated from french message)

What am I doing wrong?
TIA
Philippe

Comments

Sign In or Register to comment.