<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>OData in WebAPI – Microsoft ASP.NET Web API OData 0.2.0-alpha release</title><link>http://blogs.msdn.com/b/alexj/archive/2012/11/02/odata-in-webapi-microsoft-asp-net-web-api-odata-0-2-0-alpha-release.aspx</link><description>Since my last set of blog posts on OData support in WebAPI (see parts 1 &amp;amp; 2 ) we’ve been busy adding support for Server Driven Paging, Inheritance and OData Actions. Our latest alpha release on Nuget has preview level support for these features. Lets</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: OData in WebAPI – Microsoft ASP.NET Web API OData 0.2.0-alpha release</title><link>http://blogs.msdn.com/b/alexj/archive/2012/11/02/odata-in-webapi-microsoft-asp-net-web-api-odata-0-2-0-alpha-release.aspx#10387821</link><pubDate>Thu, 24 Jan 2013 05:37:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10387821</guid><dc:creator>SJ</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;Is there an opportunity to implement entity set permissions, ie // Give full access to all of the entities.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;config.SetEntitySetAccessRule(&amp;quot;*&amp;quot;, EntitySetRights.All); as in WCF DS? thx.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10387821" width="1" height="1"&gt;</description></item><item><title>re: OData in WebAPI – Microsoft ASP.NET Web API OData 0.2.0-alpha release</title><link>http://blogs.msdn.com/b/alexj/archive/2012/11/02/odata-in-webapi-microsoft-asp-net-web-api-odata-0-2-0-alpha-release.aspx#10383000</link><pubDate>Mon, 07 Jan 2013 23:05:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10383000</guid><dc:creator>KC</dc:creator><description>&lt;p&gt;Is there any reason that writing the code in VB.NET may not allow correct uri routing?&lt;/p&gt;
&lt;p&gt;I have two solutions side by side ... identical as far as I can tell, one written in VisualBasic.Net, one in C#.&lt;/p&gt;
&lt;p&gt;If I write the code in C# it seems to route to the Get() or Get(Guid key) functions in my apicontroller as you describe but the VB.NET version always routes to the Get() function with no parameters.&lt;/p&gt;
&lt;p&gt;GET ~/Products &amp;nbsp; -&amp;gt; Routes to Get()&lt;/p&gt;
&lt;p&gt;GET ~/Products(1) &amp;nbsp;-&amp;gt; Also Routes to Get() even though I have a function Get(&amp;lt;FromODataUri&amp;gt;id as integer) available&lt;/p&gt;
&lt;p&gt;There may be other issues using VB.NET but this was the simplest failing case I found.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10383000" width="1" height="1"&gt;</description></item><item><title>re: OData in WebAPI – Microsoft ASP.NET Web API OData 0.2.0-alpha release</title><link>http://blogs.msdn.com/b/alexj/archive/2012/11/02/odata-in-webapi-microsoft-asp-net-web-api-odata-0-2-0-alpha-release.aspx#10375248</link><pubDate>Thu, 06 Dec 2012 13:39:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10375248</guid><dc:creator>dirq</dc:creator><description>&lt;p&gt;Thanks so much for the quick updates. &amp;nbsp;You guys are flyin. &amp;nbsp;I&amp;#39;m looking for $inlineCount support for use in the Infragistics IgniteUI grid. &amp;nbsp;Any good resources on putting that in myself with the current webAPI abilities?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10375248" width="1" height="1"&gt;</description></item><item><title>re: OData in WebAPI – Microsoft ASP.NET Web API OData 0.2.0-alpha release</title><link>http://blogs.msdn.com/b/alexj/archive/2012/11/02/odata-in-webapi-microsoft-asp-net-web-api-odata-0-2-0-alpha-release.aspx#10375049</link><pubDate>Thu, 06 Dec 2012 00:47:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10375049</guid><dc:creator>MichaelD!</dc:creator><description>&lt;p&gt;Wow... I have spent the past few hours catching up on this project and I have to say: Alex D James, you are my HERO! :) &amp;nbsp;Thanks for being super responsive, attentive and *massively* thorough on these posts. &amp;nbsp;I can only imagine how irritating some of these comments/bug reports can be.&lt;/p&gt;
&lt;p&gt;This is an amazing project. &amp;nbsp;I am a fan. &amp;nbsp;Goodbye RIA Services. :) &amp;nbsp;Please do keep up the amazing work, Alex!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10375049" width="1" height="1"&gt;</description></item><item><title>re: OData in WebAPI – Microsoft ASP.NET Web API OData 0.2.0-alpha release</title><link>http://blogs.msdn.com/b/alexj/archive/2012/11/02/odata-in-webapi-microsoft-asp-net-web-api-odata-0-2-0-alpha-release.aspx#10374241</link><pubDate>Mon, 03 Dec 2012 22:42:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10374241</guid><dc:creator>Jake Heidt</dc:creator><description>&lt;p&gt;I&amp;#39;ve run into an issue getting some specific entities up and running on odata/webapi. For the most part everything runs great, but I have a hierarchy of entities that have composite keys - think something like { county number, town number } &amp;nbsp;or { ingredient , recipe }&lt;/p&gt;
&lt;p&gt;Is there a relatively easy way to get all the URL goodies that are baked into the currently expected URLs that take id, to take multi-part keys in the id? stuff like /books(15) &amp;nbsp;ie: /books(15,1337) ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10374241" width="1" height="1"&gt;</description></item><item><title>re: OData in WebAPI – Microsoft ASP.NET Web API OData 0.2.0-alpha release</title><link>http://blogs.msdn.com/b/alexj/archive/2012/11/02/odata-in-webapi-microsoft-asp-net-web-api-odata-0-2-0-alpha-release.aspx#10373281</link><pubDate>Thu, 29 Nov 2012 22:47:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10373281</guid><dc:creator>mj1856</dc:creator><description>&lt;p&gt;@RaghuRam - Thanks, I like the idea of inheriting it into my own attribute. &amp;nbsp;Thanks. &amp;nbsp;(BTW - I hadn&amp;#39;t updated my MSDN profile yet to match my others. &amp;nbsp;I still don&amp;#39;t like how the &amp;quot;display name&amp;quot; has to be unique. &amp;nbsp;Prevents me from using my real name)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10373281" width="1" height="1"&gt;</description></item><item><title>re: OData in WebAPI – Microsoft ASP.NET Web API OData 0.2.0-alpha release</title><link>http://blogs.msdn.com/b/alexj/archive/2012/11/02/odata-in-webapi-microsoft-asp-net-web-api-odata-0-2-0-alpha-release.aspx#10373209</link><pubDate>Thu, 29 Nov 2012 19:35:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10373209</guid><dc:creator>RaghuRam</dc:creator><description>&lt;p&gt;@mj123451 &lt;/p&gt;
&lt;p&gt;you could enable it by using the extension method we added EnableQuerySupport.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; config.EnableQuerySupport(new QueryableAttribute { HandleNullPropagation = HandleNullPropagationOption.False });&lt;/p&gt;
&lt;p&gt;The side-effect is that query-composition is enabled for all actions that return IQueryable&amp;lt;T&amp;gt;.&lt;/p&gt;
&lt;p&gt;An alternative way is to inherit the QueryableAttribute and in the ctor set HandleNullPropagation to False like,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;public class NonNullPropagationQueryableAttribute : QueryableAttribute&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public NonNullPropagationQueryableAttribute()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HandleNullPropagation = HandleNullPropagationOption.False;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10373209" width="1" height="1"&gt;</description></item><item><title>re: OData in WebAPI – Microsoft ASP.NET Web API OData 0.2.0-alpha release</title><link>http://blogs.msdn.com/b/alexj/archive/2012/11/02/odata-in-webapi-microsoft-asp-net-web-api-odata-0-2-0-alpha-release.aspx#10373200</link><pubDate>Thu, 29 Nov 2012 19:20:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10373200</guid><dc:creator>Alex D James</dc:creator><description>&lt;p&gt;@mj123451 (great name BTW).&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure on this. Queryable is registered as an ActionFilter so there is a chance you can do this globally. I&amp;#39;ve sent an email to people who know this code better than me, hopefully they&amp;#39;ll weigh in soon!&lt;/p&gt;
&lt;p&gt;-Alex&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10373200" width="1" height="1"&gt;</description></item><item><title>re: OData in WebAPI – Microsoft ASP.NET Web API OData 0.2.0-alpha release</title><link>http://blogs.msdn.com/b/alexj/archive/2012/11/02/odata-in-webapi-microsoft-asp-net-web-api-odata-0-2-0-alpha-release.aspx#10373128</link><pubDate>Thu, 29 Nov 2012 16:52:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10373128</guid><dc:creator>mj1856</dc:creator><description>&lt;p&gt;@Alex - Can you expose a singleton for setting the default options on Queryable? &amp;nbsp;I saw your last post that includes the options for null propagation handling. &amp;nbsp;There are many more LINQ providers than just EF, L2S and L2O. &amp;nbsp;For example, we can use WebApi with OData to query against RavenDB with their LINQ provider. &amp;nbsp;But for it to work properly, I have to set HandleNullPropogationOption.False on every single controller. &amp;nbsp;There should be a simpler way to set the default globally.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10373128" width="1" height="1"&gt;</description></item><item><title>re: OData in WebAPI – Microsoft ASP.NET Web API OData 0.2.0-alpha release</title><link>http://blogs.msdn.com/b/alexj/archive/2012/11/02/odata-in-webapi-microsoft-asp-net-web-api-odata-0-2-0-alpha-release.aspx#10371846</link><pubDate>Tue, 27 Nov 2012 01:08:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10371846</guid><dc:creator>Alex D James</dc:creator><description>&lt;p&gt;@Szymon&lt;/p&gt;
&lt;p&gt;Add this Nuget source - &lt;a rel="nofollow" target="_new" href="http://www.myget.org/F/aspnetwebstacknightly/"&gt;www.myget.org/.../aspnetwebstacknightly&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10371846" width="1" height="1"&gt;</description></item></channel></rss>