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

[Solved] Method Extend of objectscope not found

2 Answers 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mathias
Top achievements
Rank 1
Mathias asked on 26 Jun 2009, 11:48 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
PetarP
Telerik team
answered on 27 Jun 2009, 08:50 AM
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.
0
Mathias
Top achievements
Rank 1
answered on 28 Jun 2009, 07:27 PM
Petar,

works now.

Thank you!

Mathias
Tags
General Discussions
Asked by
Mathias
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Mathias
Top achievements
Rank 1
Share this question
or