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

Mapping the ID of a relation

2 Answers 59 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jakkie Esschert van den
Top achievements
Rank 1
Jakkie Esschert van den asked on 21 Oct 2010, 01:55 PM

In the designer I've mapped a class with a many to one relationship to another class. When fetching the object the related object is loaded just fine. I also mapped the related id field to a property in the class, but that field never gets filled when loading the object.

Is there some reason the same table field cannot be used twice, or am I doing something wrong?

2 Answers, 1 is accepted

Sort by
0
Zoran
Telerik team
answered on 27 Oct 2010, 08:34 AM
Hello Jakkie Esschert van den,

 This is not the desired behavior of Telerik OpenAccess ORM and we were not able to reproduce it as well. The foreign key field always gets loaded as it is part of the default fetch group and the reference to the object is loaded lazily. Could you please give us some more insight into your case, in which manner do you load the objects and how do you detect that the foreign key field is not loaded?

We are looking forward towards resolving this issue.

Best wishes,
Zoran
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jakkie Esschert van den
Top achievements
Rank 1
answered on 11 Nov 2010, 11:39 AM
I just updated to the new version of OpenAccess and this seems to have resolved this issue...
Tags
Getting Started
Asked by
Jakkie Esschert van den
Top achievements
Rank 1
Answers by
Zoran
Telerik team
Jakkie Esschert van den
Top achievements
Rank 1
Share this question
or