.NET ODataController class to return collection of type strutcurally unrelated to type for controller
<p>I have a class, <code>MyClassController</code> that inherits from <code>ODataController</code>. I've been able to use the "automagic" routing for access to properties of scaler collections types using, e.g., <code>/path/to/MyClass(100)/SomeProperty</code>. I now need to return a collection of a class that's structurally unrelated to <code>MyClass</code> (i.e., there are no references connecting the two classes) but logically, there's a relationship between the two. I'd like to be able to do something like <code>GET</code>ting <code>/path/to/MyClass(100)/RelatedThings/</code>. How can I set that up? I'm setting up <code>MyClass</code> and its related classes using <code>ODataConventionModelBuilder.EntitySet&lt;&gt;</code> in the <code>Application_Start</code>.</p>

<p>I'm using Microsoft.OData.Core 6.13.0 (OData 4.0).</p>

<p><strong>edit:</strong> I left out some details from this question that I didn't realize were relevant about some of the design decisions I'd made elsewhere in the application, so I accepted the answer that best solves this problem without taking those details into account. I ended up making a bound OData function in the MyClass controller that returned the related things. I found if I didn't include the namespace or a trailing slash, the HTTP requested yielded error. That is, <code>/path/to/MyClass(100)/Default.RelatingThings/</code> works. I'm looking into ways to removing the need for the trailing slash and the namespace. (<em>edit</em>: Call <code>config.EnableUnqualifiedNameCall(true)</code> when setting up your OData routing; see <a href="https://stackoverflow.com/a/35156885/1102726">https://stackoverflow.com/a/35156885/1102726</a>.)</p>