Reverse Mapping > Object Properties for foreign keys

2 posts, 1 answers
  1. jon
    jon avatar
    33 posts
    Member since:
    Dec 2008

    Posted 28 May 2009 Link to this post

    When adding an object I am not sure how to set the value of a property that joins another table because the property is not available.

    Animal a = new Animal();
    a.AnimalId = animalId;
    a.LKUPIdMethod.IdMethod = idMethod;

    I want to set a.IdMethod, but it is not available - only a.LKUPIdMethod.IdMethod is available.  How can I keep that a.IdMethod property as part of the object when generating my ReverseMapping with OpenAccess?
  2. Answer
    Zoran avatar
    534 posts

    Posted 29 May 2009 Link to this post

    Hello jon,

    If we take into account the current code generation of OpenAccess you should use a workaround that we have documented in our knowledge-base for scenarios similar to yours.

    I'd just like to mention that this is only temporary and the process will be automated in some of OpenAccess future releases.

    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. DevCraft banner
Back to Top