Not retrieving Entities

2 posts, 0 answers
  1. Marcel
    Marcel avatar
    3 posts
    Member since:
    Sep 2012

    Posted 09 Oct 2012 Link to this post

    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

  2. PetarP
    PetarP avatar
    754 posts

    Posted 12 Oct 2012 Link to this post

    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.

    the Telerik team
    Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.
  3. DevCraft banner
Back to Top