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

Not retrieving Entities

1 Answer 36 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.
Marcel
Top achievements
Rank 1
Marcel asked on 09 Oct 2012, 01:43 PM
I've followed the tutorials here Getting Started and gotten everything working fine, but I now need to create relationships within the entities so that I can retrieve the entities related to the others. I followed this tutorial Many-To-One Relationships to create the meta data file and I'm not getting any errors, but the service is not returning any entities in the collection.

Is there any reason this could occur, and how can I fix it? I'm not entirely sure what information you'll need in order to help me with this so just ask.

Thanks in advance

Marcel

1 Answer, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 12 Oct 2012, 11:26 AM
Hi Marcel,

 Are those association present in your model as well? Just applying the attributes on classes that are not related in the actual OpenAccess model will not give you the desired effect. The easiest way to check if this is a mapping issue or a runtime issue would be to put a break point in the Completed event in your LoadOperation callback method on the client side. There, when the Completed event fires you can inspect the Errors collection. If there are any errors I would advice you to share them with us so that we can get to the actual problem. If there aren't any errors then this seems to be caused by incorrect mapping in your model.

Regards,
Petar
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.
Tags
General Discussions
Asked by
Marcel
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Share this question
or