<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Four Step sample question</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Four Step sample question</description>
  <pubDate>Sun, 12 Apr 2026 04:39:31 -700</pubDate>
  <lastBuildDate>Wed, 24 Jun 2009 16:19:10 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1337</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Four Step sample question : Ben:If you mean &amp;#034;why can&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1337&amp;PID=4847#4847</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1337<br /><strong>Posted:</strong> 24-Jun-2009 at 4:19pm<br /><br />Ben:<br><br>If you mean "why can't the result of the query be an IObservableCollection", I imagine the reason is that ObservableCollection is designed for UI purposes; whereas the query results may be needed for many different kinds of uses, for many of which a lighter-weight collection is entirely adequate.<br><br>You can, of course, refactor the foreach operation so you can do it a bit more succinctly.<br><br>&gt;&gt;<br>p.s. I would like to expand upon my question. If we are using a "Middleman" ObservableCollection (i.e. _employess or _orders) which areconnected to the UI but have no connection to the result coming formthe server, how is change on the UI going to make back to the server?<br>&lt;&lt;<br><br>Not sure which change you're talking about. All changes to the entities in the collection (Observable or otherwise) will get back to the server (and the backing store) via SaveChanges().<br>]]>
   </description>
   <pubDate>Wed, 24 Jun 2009 16:19:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1337&amp;PID=4847#4847</guid>
  </item> 
  <item>
   <title>Four Step sample question : Hi;  In the Four step sample,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1337&amp;PID=4813#4813</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=425" rel="nofollow">BenHayat</a><br /><strong>Subject:</strong> 1337<br /><strong>Posted:</strong> 19-Jun-2009 at 12:32pm<br /><br />Hi;<br /><br />In the Four step sample, as we load the Employees and we get the result back (same thing for orders), why do we need to iterate through the result list and add them to an IObservableCollection? Why can't the result be an IObservableCollection, so we can directly connect it to grid's ItemsSource?<br /><br />Thanks!<br /><br />p.s. I would like to expand upon my question. If we are using a "Middle man" ObservableCollection (i.e. _employess or _orders) which are connected to the UI but have no connection to the result coming form the server, how is change on the UI going to make back to the server?<br />I think that's why I'm asking why can't we connect the UI to result, so any changes to UI is recognized by EM.<br />Thanks!<span style="font-size:10px"><br /><br />Edited by BenHayat - 20-Jun-2009 at 7:52am</span>]]>
   </description>
   <pubDate>Fri, 19 Jun 2009 12:32:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1337&amp;PID=4813#4813</guid>
  </item> 
 </channel>
</rss>