Method Extend of objectscope not found

Thread is closed for posting
3 posts, 1 answers
  1. Mathias
    Mathias avatar
    7 posts
    Member since:
    Jan 2009

    Posted 26 Jun 2009 Link to this post

    I generated a class from by reverse mapping and try to access an object by:

     

    Database db = Database.Get("orderconnection");

     

     

    IObjectScope scope = db.GetObjectScope();

     

     

    Order order = (from c in scope.Extent<Order>() select c).First();

    I can not compile because the method Extent is not found.

    What is wrong here?
    I use version 2009.1.405.1

    regards Mathias

     

  2. Answer
    PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 27 Jun 2009 Link to this post

    Hello Mathias,
    have you included the Telerik.OpenAccess.Query. This assembly contains our LINQ implementation. You will need the following.
    using Telerik.OpenAccess.Query; 

    Best wishes,
    Petar
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Mathias
    Mathias avatar
    7 posts
    Member since:
    Jan 2009

    Posted 28 Jun 2009 Link to this post

    Petar,

    works now.

    Thank you!

    Mathias
Back to Top