locked
Loosing association reference error when using expand RRS feed

  • Question

  • Hy guys

     

    Here my problem -> i've a simple entity model 6>  <FeedItem> has two relations <Category> and <Response>

    when i request http://localhost/DataService/MyModel.svc/FeedItems?$top=100

    i got

    <FeedItems>


     <FeedItem uri="FeedItems[29B283B490754A09938E69AE0BE53AE90000]">
      ...

       <Categories href="FeedItems[29B283B490754A09938E69AE0BE53AE90000]/Categories" />

      <Responses href="FeedItems[29B283B490754A09938E69AE0BE53AE90000]/Responses" />

      </FeedItem>

    <FeedItems>

    What seems OK

     

    When i request http://localhost/DataService/MyModel.svc/FeedItems?$expand=Categories$top=100

    i got

    <FeedItems>
     <FeedItem uri="FeedItems[29B283B490754A09938E69AE0BE53AE90000]">
      ...

       <Categories>...</Categories>

      <Responses href="[29B283B490754A09938E69AE0BE53AE90000]/Responses" />

      </FeedItem>

    look at href for <Responses> the parent entity name disappeared ?

     

    Consequences : when i run this code “feedItems.Response.Load()” it throws a nice exception.

     

    Am I doing wrong, is it a bug, is there any bypass ?

    Regards

     

    Monday, November 12, 2007 8:48 AM

Answers