<?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>ADO.NET Data Services: CLR-based data models and navigation links</title><link>http://blogs.msdn.com/pedram/archive/2008/07/20/ado-net-data-services-clr-based-data-models-and-navigation-links.aspx</link><description>As you are probably aware, one of the new additions to the .NET Framework 3.5 SP1 is a technology called ADO.NET Data Services (code name Astoria). ADO.NET Data Services natively supports ADO.NET Entity Framework (EF) models. However Data Services it</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Pregnant Man &amp;raquo; ADO.NET Data Services: CLR-based data models and navigation links</title><link>http://blogs.msdn.com/pedram/archive/2008/07/20/ado-net-data-services-clr-based-data-models-and-navigation-links.aspx#8757175</link><pubDate>Sun, 20 Jul 2008 05:24:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8757175</guid><dc:creator>Pregnant Man &amp;raquo; ADO.NET Data Services: CLR-based data models and navigation links</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://wordnew.acne-reveiw.info/?p=11018"&gt;http://wordnew.acne-reveiw.info/?p=11018&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: ADO.NET Data Services: CLR-based data models and navigation links</title><link>http://blogs.msdn.com/pedram/archive/2008/07/20/ado-net-data-services-clr-based-data-models-and-navigation-links.aspx#8970109</link><pubDate>Tue, 30 Sep 2008 13:19:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8970109</guid><dc:creator>Koen</dc:creator><description>&lt;p&gt;That's nice.&lt;/p&gt;
&lt;p&gt;But..&lt;/p&gt;
&lt;p&gt;Where would you make possible database calls to fill s_libraries and s_books?&lt;/p&gt;
&lt;p&gt;You could do this in the constructor, but that would lead to the fact that all data would be retrieved on every request. Not good.&lt;/p&gt;
&lt;p&gt;Ideally, you'd to this in the get for Books, for instance:&lt;/p&gt;
&lt;p&gt;public IQueryable&amp;lt;Book&amp;gt; Books&lt;/p&gt;
&lt;p&gt; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;get&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;using(DataSource dataSource = new DataSource)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return dataSource.Books.AsQueryable();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;But that leads to an exception:&lt;/p&gt;
&lt;p&gt;The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.&lt;/p&gt;
&lt;p&gt;Any thoughts appreciated.&lt;/p&gt;
&lt;p&gt;koen&lt;/p&gt;</description></item><item><title>re: ADO.NET Data Services: CLR-based data models and navigation links</title><link>http://blogs.msdn.com/pedram/archive/2008/07/20/ado-net-data-services-clr-based-data-models-and-navigation-links.aspx#9026090</link><pubDate>Fri, 31 Oct 2008 09:55:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9026090</guid><dc:creator>Raag</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;I have created some of the SP and function in .net....i can depoly this to SQL CLr using deply menu in VS2005 or i can use create assembly method to add the dll into SQL CLr....&lt;/p&gt;
&lt;p&gt;but i want to send this to client....is there any MSI i can build so the client can run the same as exe...&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Raag&lt;/p&gt;</description></item><item><title>re: ADO.NET Data Services: CLR-based data models and navigation links</title><link>http://blogs.msdn.com/pedram/archive/2008/07/20/ado-net-data-services-clr-based-data-models-and-navigation-links.aspx#9375298</link><pubDate>Mon, 26 Jan 2009 00:28:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375298</guid><dc:creator>Andy Brummer</dc:creator><description>&lt;p&gt;Thanks for the info. &amp;nbsp;Your post cleared up the data model used to shoehorn non-entity objects into data services. &amp;nbsp;All their examples had it, but none of the samples explicitly stated that every object has to be part of these root collections.&lt;/p&gt;</description></item></channel></rss>