Back to EF FAQs Table of Contents 

Do ObjectQuery and EntityCollection support databinding for WinForms / WPF? Where has the "ToBindingList" method gone?


Both ObjectQuery and EntityCollection implement IListSource, which makes databinding automatic rather than requiring explicit calls to methods like ToBindingList(). In fact, because the automatic mechanism is so much better, ToBindingList was removed. For more information, see Binding Objects to Controls (Entity Framework).

 

What about ASP.NET?


The EF includes an EntityDataSource control and corresponding designer experience in Visual Studio that greatly simplifies the creation of ASP.NET sites with EF databinding. In addition, ASP.NET Dynamic Data further automates the process. For more information, see Getting Started with the Entity Framework in ASP.NET and EntityDataSource Web Server Control Overview.

Back to EF FAQs Table of Contents