Blazing fast performance with RadGridView for WPF 4.0 and Entity Framework 4.0

Posted by: the telerik blogs, on 15 Apr 2010 | View original | Bookmarked: 0 time(s)

Just before our upcoming release of Q1 2010 SP1 (early next week), Ive decided to check how RadGridView for WPF will handle complex Entity Framework 4.0 query with almost 2 million records:

public  class  MyDataContext{    IQueryable _Data;    public  IQueryable Data    {        get        {            if  (_Data ==  null)            {                var northwindEntities =  new  NorthwindEntities();                var queryable = from o  in  northwindEntities.Orders                                from od  in  northwindEntities.Order_Details                                select  new                                {                                    od.OrderID,                                    od.ProductID,                                    od.UnitPrice,                                    od.Quantity,                                    od.Discount,                                    o.CustomerID,                                    o.EmployeeID,                                    o.OrderDate                                };                _Data = queryable.OrderBy(i => i.OrderID);            }             return  _Data;        }    }}


The grid is bound completely codeless in XAML using RadDataPager with PageSize set to 50:

<Window  x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Title="MainWindow" mc...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: XAML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1116 | Hits: 41

Similar Posts

  • Talking Points: ADO.NET Entity Framework more
  • More on Foreign Keys in EF more
  • Visual Studio 2008 Service Pack 1 (SP1) and .NET Framework 3.5 SP1 more
  • Looking at EF Performance - some surprises more
  • WPF Series: IFrameworkElement - the missing interface more
  • Sneak Peek at the EntityDataSource Control more
  • Exploring EntityKeys, Web Services and Serialization a little further more
  • Grokking Entity Mapping in ADO.NET Orcas more
  • LLBLGen Pro v2.0 released! more
  • You gotta love SeeWindowsVista more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD