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

Reverse Mapping > Object Properties for foreign keys

1 Answer 31 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.
jon
Top achievements
Rank 1
jon asked on 28 May 2009, 05:23 PM
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.

scope.Transaction.Begin();
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?
Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Zoran
Telerik team
answered on 29 May 2009, 02:57 PM
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.

Regards,
Zoran
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.
Tags
Getting Started
Asked by
jon
Top achievements
Rank 1
Answers by
Zoran
Telerik team
Share this question
or