<?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>Quick tips for Entity Framework Databinding</title><link>http://blogs.msdn.com/diego/archive/2008/10/09/quick-tips-for-entity-framework-databinding.aspx</link><description>One of our customers asked this question yesterday on the Entity Framework forums. There were a few details missing and so I am not completely sure I got the question right. But I think it is about an issue I have heard quite a bit, and so I think it</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>  Quick tips for Entity Framework Databinding : EasyCoded</title><link>http://blogs.msdn.com/diego/archive/2008/10/09/quick-tips-for-entity-framework-databinding.aspx#8992406</link><pubDate>Thu, 09 Oct 2008 06:40:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8992406</guid><dc:creator>  Quick tips for Entity Framework Databinding : EasyCoded</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.easycoded.com/quick-tips-for-entity-framework-databinding/"&gt;http://www.easycoded.com/quick-tips-for-entity-framework-databinding/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Quick tips for Entity Framework Databinding</title><link>http://blogs.msdn.com/diego/archive/2008/10/09/quick-tips-for-entity-framework-databinding.aspx#9916212</link><pubDate>Mon, 02 Nov 2009 16:03:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9916212</guid><dc:creator>jbe</dc:creator><description>&lt;p&gt;Thanks for this interesting post. I have some problems with data binding and WPF. I bind two DataGrids (WPF Toolkit) to the same EntityCollection but changes in one DataGrid aren’t updated in the other one (e.g. add new item).&lt;/p&gt;
&lt;p&gt;I believe WPF doesn’t use the IListSource.GetList() method. Anyway, it would be nice to see the EntityCollection implementing the INotifyCollectionChanged interface in EF 4.0.&lt;/p&gt;</description></item><item><title>re: Quick tips for Entity Framework Databinding</title><link>http://blogs.msdn.com/diego/archive/2008/10/09/quick-tips-for-entity-framework-databinding.aspx#9916249</link><pubDate>Mon, 02 Nov 2009 17:11:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9916249</guid><dc:creator>divega</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We don't have plans to implement INotifyCollectionChanged in 4.0. But this is a good suggestion. Now that the interface has been moved to System.dll we can implement it without having to add a dependency on WindowsBase.dll. In the meanwhile, you can consider using your own ObservableCollections as binding lists for EF.&lt;/p&gt;
&lt;p&gt;Take a look at Beth Massi's implementation here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/bethmassi/archive/2009/05/08/using-the-wpf-observablecollection-with-ef-entities.aspx"&gt;http://blogs.msdn.com/bethmassi/archive/2009/05/08/using-the-wpf-observablecollection-with-ef-entities.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or at C# version here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/diego/archive/2009/07/26/wpf-databinding-with-the-poco-template.aspx"&gt;http://blogs.msdn.com/diego/archive/2009/07/26/wpf-databinding-with-the-poco-template.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The only detail that those samples are lacking is that they are not synchronizing the binding list with the source when changes happen in the source. You can listen to the AssociationChanged event on the EntityCollection for that. &lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Diego&lt;/p&gt;
</description></item><item><title>re: Quick tips for Entity Framework Databinding</title><link>http://blogs.msdn.com/diego/archive/2008/10/09/quick-tips-for-entity-framework-databinding.aspx#9917281</link><pubDate>Wed, 04 Nov 2009 12:45:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9917281</guid><dc:creator>jbe</dc:creator><description>&lt;p&gt;Hello Diego,&lt;/p&gt;
&lt;p&gt;We use a similar approach as Beth Massi. However, for RAD (Rapid Application Development) it would be nice to bind directly to the EntityCollections generated by the EDM.&lt;/p&gt;
&lt;p&gt;I hope to see this in a future release of EF.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;jbe&lt;/p&gt;</description></item></channel></rss>