Simple Linq Let doesnt work

3 posts, 0 answers
  1. Nick
    Nick avatar
    4 posts
    Member since:
    Sep 2008

    Posted 07 Dec 2011 Link to this post

    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. Thomas
    Admin
    Thomas avatar
    590 posts

    Posted 14 Dec 2011 Link to this post

    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!

  3. DevCraft banner
  4. Nick
    Nick avatar
    4 posts
    Member since:
    Sep 2008

    Posted 20 Dec 2011 Link to this post

    Thanks Telerik!
Back to Top