<?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 : DevForce EF and WPF</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : DevForce EF and WPF</description>
  <pubDate>Sat, 11 Apr 2026 07:58:13 -700</pubDate>
  <lastBuildDate>Wed, 24 Dec 2008 18:18:54 -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=1034</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>DevForce EF and WPF :  Originally posted by AmyHi there,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1034&amp;PID=3741#3741</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> 1034<br /><strong>Posted:</strong> 24-Dec-2008 at 6:18pm<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by Amy</strong></em><br /><br />Hi there, <DIV>&nbsp;</DIV><DIV>I am trying theDevForce EF and WPF. The ListBox Control of WPF needs to bind to a collection.&nbsp;&nbsp;Does DevFoce EF help me to generate the collections? For example, I have table called&nbsp;OrderType and want to show everything in that table, the DevForce EF will generate OrderType class for me, but I can't bind it to the Listbox since it is not a collection. Do I have to get the collection on my own? Is any simple way to do it? Any WPF example with DevForce EF&nbsp;would be helpful.</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance!</DIV><DIV>&nbsp;</DIV><DIV>Amy</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>A LINQ query against a DevForce EF EntityManager can be passed directly into the constructor of pretty much any list type.&nbsp; Generally speaking, you should use a .NET ObservableCollection&lt;T&gt; if you going to do WPF data binding against the list:</DIV><FONT size=2><P></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>&nbsp;&nbsp; ObservableCollection</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Employee</FONT></FONT><FONT size=2>&gt; emps = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>ObservableCollection</FONT></FONT><FONT size=2> &lt; </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Employee</FONT></FONT><FONT size=2> &gt;(_mgr.Employees);</P><DIV></DIV><FONT color=#2b91af size=2><FONT color=#2b91af size=2><DIV><FONT color=#000000>If you're going to do Winform data binding, use a DevForce IdeaBlade.Util.BindableList&lt;T&gt;:</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV>&nbsp;&nbsp; BindableList</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Employee</FONT></FONT><FONT size=2>&gt; emps = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>BindableList</FONT></FONT><FONT size=2>&lt; </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Employee</FONT></FONT><FONT size=2> &gt;(_mgr.Employees);</DIV><DIV></DIV><FONT color=#2b91af size=2><FONT color=#2b91af size=2><DIV>&nbsp;</DIV><DIV><FONT color=#000000>For non-data-binding uses, you can use the lighter-weight List&lt;T&gt;</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV>&nbsp;&nbsp; List</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Employee</FONT></FONT><FONT size=2>&gt; emps = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>List</FONT></FONT><FONT size=2>&lt; </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Employee</FONT></FONT><FONT size=2> &gt;(_mgr.Employees);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Wed, 24 Dec 2008 18:18:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1034&amp;PID=3741#3741</guid>
  </item> 
  <item>
   <title>DevForce EF and WPF : Hi there,  I am trying theDevForce...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1034&amp;PID=3735#3735</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=412" rel="nofollow">Amy</a><br /><strong>Subject:</strong> 1034<br /><strong>Posted:</strong> 23-Dec-2008 at 8:39pm<br /><br />Hi there,<DIV>&nbsp;</DIV><DIV>I am trying theDevForce EF and WPF. The ListBox Control of WPF needs to bind to a collection.&nbsp;&nbsp;Does DevFoce EF help me to generate the collections? For example, I have table called&nbsp;OrderType and want to show everything in that table, the DevForce EF will generate OrderType class for me, but I can't bind it to the Listbox since it is not a collection. Do I have to get the collection on my own? Is any simple way to do it? Any WPF example with DevForce EF&nbsp;would be helpful.</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance!</DIV><DIV>&nbsp;</DIV><DIV>Amy</DIV>]]>
   </description>
   <pubDate>Tue, 23 Dec 2008 20:39:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1034&amp;PID=3735#3735</guid>
  </item> 
 </channel>
</rss>