1
Vote

Add containment support to the OData model builder

description

We expose all the entity sets at the root level in the service document. we should support containment scenarios.
As an example, entity set 'orders' is contained by the entity set 'customers'. One cannot address an order without getting to the customer who owns that order.

comments

raghuramn wrote Oct 19, 2012 at 2:50 AM

we should also consider changing the link generation conventions to support this scenario out-of-the-box.

HongmeiG wrote Oct 19, 2012 at 5:27 PM

New feature request is post Build.

HongmeiG wrote Oct 26, 2012 at 12:17 AM

This includes two work items:
  1. update the metadata to indicate one entity set is contained in another;
  2. when generating link, you need to used the containing controller;
Moving this out since user can customize the model through convention and they can customize the link generation through link factory.