This is a migrated thread and some comments may be shown as answers.

Simple Linq Let doesnt work

2 Answers 63 Views
LINQ (LINQ specific questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nick
Top achievements
Rank 1
Nick asked on 07 Dec 2011, 07:05 PM
Hello Telerik
I use Q3 2010

Why it does not work?
var ctx = new EntityDiagrams();
var pq =
(from p in ctx.GetAll<Table_1>()
let k = new { F = p }
select k.F).ToList();


The Table_1 is quite simple also
CREATE TABLE Table_1(
    id int NOT NULL,
    field varchar(50) NULL,
 CONSTRAINT [PK_Table_1] PRIMARY KEY CLUSTERED (id ASC)) ON [PRIMARY]

The domain model was generated "all by default"
It says: "Object reference not set to an instance of an object."

Thanks

2 Answers, 1 is accepted

Sort by
0
Thomas
Telerik team
answered on 14 Dec 2011, 09:36 AM
Hello Nick,

this issue is fixed in the next custom build which should appear today.

Best wishes,
Thomas
the Telerik team

Q3’11 of Telerik OpenAccess ORM is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Nick
Top achievements
Rank 1
answered on 20 Dec 2011, 08:56 AM
Thanks Telerik!
Tags
LINQ (LINQ specific questions)
Asked by
Nick
Top achievements
Rank 1
Answers by
Thomas
Telerik team
Nick
Top achievements
Rank 1
Share this question
or