Mapping the ID of a relation

3 posts, 0 answers
  1. Jakkie Esschert van den
    Jakkie Esschert van den avatar
    61 posts
    Member since:
    Sep 2009

    Posted 21 Oct 2010 Link to this post

    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. Zoran
    Admin
    Zoran avatar
    534 posts

    Posted 27 Oct 2010 Link to this post

    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
  3. DevCraft banner
  4. Jakkie Esschert van den
    Jakkie Esschert van den avatar
    61 posts
    Member since:
    Sep 2009

    Posted 11 Nov 2010 Link to this post

    I just updated to the new version of OpenAccess and this seems to have resolved this issue...
Back to Top