Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

New Post: OData Routing

$
0
0
zlangner wrote:
Sorry for not getting back to you sooner. It would seem I've been living out of a meeting room this week. I just wanted to let you know that your solution does work, but I'm still wondering what is HasNavigationPropertiesLink for? I noticed it when I was using the ODataModelBuilder to build the model for my ODataRoute. The function exists in EntitySetConfiguration. If you or anyone has an example of it's use or can explain why someone might use it I would appreciate the knowledge. It's hard to make good use of a tool kit if you don't know what all the tools are.
HasNavigagationPropertiesLink is used to configure the navigation links for an entity set. If you are using the ODataConventionModelBuilder, the model builder already takes care of setting up the navigation links following the OData link conventions. If for some reason (like lets says containment) you want to deviate from OData URL conventions, you can use this method.

Viewing all articles
Browse latest Browse all 7925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>