R
Ronald S. Cook
From my business tier (class) I get back an IQueryable<Pen> of data. Here
is my client code that works fine:
PenClass penClass = new PenClass();
IQueryable<Pen> pens = penClass.SelectPens();
However, I want to then select a subset of this data from within the client.
I tried this:
IQueryable<Pen> pensSubset = from p in pens select p.PenId, p.PenNumber;
... but it doesn't even compile.
Can anyone tell me the correct syntax?
Thanks.
is my client code that works fine:
PenClass penClass = new PenClass();
IQueryable<Pen> pens = penClass.SelectPens();
However, I want to then select a subset of this data from within the client.
I tried this:
IQueryable<Pen> pensSubset = from p in pens select p.PenId, p.PenNumber;
... but it doesn't even compile.
Can anyone tell me the correct syntax?
Thanks.