<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Working with Entity Relations</title><link>http://www.asp.net</link><pubDate>Tue, 07 May 2013 04:27:29 GMT</pubDate><generator>umbraco</generator><description>Comments for Working with Entity Relations</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/44062" rel="self" type="application/rss+xml" /><item><title>Comment Posted by f.camera</title><link>http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/working-with-entity-relations</link><pubDate>Tue, 19 Feb 2013 13:32:03 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018464</guid><description><![CDATA[ <p>Very interesting post. Just a question: according to your explanation, should the line</p><p>POST http://localhost/odata/Products(1)</p><p>actually be</p><p>POST http://localhost/odata/Products(1)/$link/Supplier</p><p>or I missed the point? Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/f.camera.jpg?forceidenticon=false&amp;dt=635047240200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by fenderbender</title><link>http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/working-with-entity-relations</link><pubDate>Wed, 20 Feb 2013 07:30:39 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018470</guid><description><![CDATA[ <p>Create link only works if I send:</p><p>POST http://localhost/odata/Products(1)/$links/Supplier</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/fenderbender.jpg?forceidenticon=false&amp;dt=635047240200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mixja</title><link>http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/working-with-entity-relations</link><pubDate>Sat, 02 Mar 2013 04:11:49 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018559</guid><description><![CDATA[ <p>Should probably add you need to add an Entity Set for Suppliers in the WebApiConfig class:</p><p></p><p>// OData Configuration</p><p>ODataModelBuilder modelBuilder = new ODataConventionModelBuilder();</p><p>modelBuilder.EntitySet&lt;Product&gt;(&quot;Products&quot;);</p><p>modelBuilder.EntitySet&lt;Supplier&gt;(&quot;Suppliers&quot;);</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/mixja.jpg?forceidenticon=false&amp;dt=635047240200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by MikeWasson</title><link>http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/working-with-entity-relations</link><pubDate>Fri, 08 Mar 2013 01:13:30 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018614</guid><description><![CDATA[ <p>@f.camera, @fenderbender: Yes, sorry - that&#39;s a typo in the doc. I&#39;ll fix this. </p><p></p><p>@mixja: Yes, good point. Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/MikeWasson.jpg?forceidenticon=false&amp;dt=635047240200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pbb</title><link>http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/working-with-entity-relations</link><pubDate>Tue, 07 May 2013 04:27:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019059</guid><description><![CDATA[ <p>@MikeWasson: there is an error in the document.  In WebApiConfig.cs it says:</p><p></p><p>modelBuilder.EntitySet&lt;Product&gt;(&quot;Suppliers&quot;);</p><p></p><p>This should be:</p><p></p><p>modelBuilder.EntitySet&lt;Supplier&gt;(&quot;Suppliers&quot;);</p><p></p><p>This is correct in the download code.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/pbb.jpg?forceidenticon=false&amp;dt=635047240200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>