# WPF EntityFrameworkDataSource Overview

**RadEntityFrameworkDataSource** is a WPF data control that provides seamless integration between an user interface and data coming from an [Entity Framework](http://msdn.microsoft.com/en-us/library/bb399572.aspx)  Container.  **RadEntityFrameworkDataSource** generates [LINQ to Entities](http://msdn.microsoft.com/en-us/library/bb399367.aspx) queries to retrieve data from an [ObjectContext](http://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.aspx) based on an [ObjectQuery<T>](http://msdn.microsoft.com/en-us/library/bb345303.aspx). The control can also perform basic CRUD operations on entities located in the container. You can retrieve, shape and edit data using declarative XAML syntax only. **RadEntityFrameworkDataSource** provides extensive code-behind API for more advanced scenarios.  **The QueryableEntityCollectionView<T>** class, which is internally used by the control, is made publicly available for use in view models part of an MVVM architecture, where the usage of UI elements is not recommended. Thanks to the fact that all controls are part of the Telerik family, **RadEntityFrameworkDataSource** can codelessly integrate with **RadGridView**, **RadDataPager** and **RadDataFilter** and perform paging, filtering, sorting, and grouping directly on the database server. **RadEntityFrameworkDataSource** can also be used as a standalone data source control since it provides the public API needed for loading, shaping and editing data.

<CtaPanelOverview></CtaPanelOverview>

![REFDS](https://www.telerik.com/products/wpf/documentation/assets/99450963389a22ac1499d79d8226c42d/radentityframework_refds.jpg)

## Features

* **Codeless approach** integration with **RadGridView**, **RadDataPager** and **RadDataFilter** - Since all of the controls share the same data engine logic, when data-bound together they are able to detect each other automatically and start exchanging information. Linking **RadGridView**, **RadDataPager** and **RadDataFilter** to a **RadEntityFrameworkDataSource**  is as easy as binding them to its **DataView** property. All operations such as paging, filtering, sorting, and grouping will automatically happen on the server without a single line of code.

* **Filtering** - it can easily be performed through the **FilterDescriptors** collection of the control. This can either be done manually by the developer through editing the collection in code-behind or it can be left to controls such as **RadGridView** or **RadDataFilter** which will automatically translate their filtering criteria and apply it to **RadEntityFrameworkDataSource** without a single line of code.

* **Sorting** - it can easily be performed through the **SortDescriptors** collection of the control. This can either be done manually by the developer through editing the collection in code-behind or it can be left to **RadGridView** which will automatically translate its sorting criteria and apply it to **RadEntityFrameworkDataSource** without a single line of code.

* **Grouping** - it can easily be performed through the **GroupDescriptors** collection of the control. This can either be done manually by the developer through editing the collection in code-behind or it can be left to **RadGridView** which will automatically translate its grouping criteria and apply it to **RadEntityFrameworkDataSource** without a single line of code.

* **Paging** - it can easily be performed through the paging API that the **DataView** of control provides. It can be done manually by the developer through methods from the **MoveTo\*Page** family and properties such as **PageIndex** and **PageSize**. Or it can be left entirely to **RadDataPager** which will automatically page on the server when bound to the **DataView** of the control.

* **Editing** - it is as simple as adding, removing or editing entities in the **DataView** of the control and then calling the **SubmitChanges** methods These operations can also be left to **RadGridView** which will automatically transfer them to the **RadEntityFrameworkDataSource**.

* **MVVM support** - is provided by the **public QueryableEntityCollectionView<T>** class, which is the view that **RadEntityFrameworkDataSource** internally uses. The **RadEntityFrameworkDataSource** control is simply a thin-wrapper over this collection view, which performs all of the heavy lifting. This allows you to use it inside your view models without losing any functionality that the control would otherwise provide.

## Telerik UI for WPF Support and Learning Resources

* [Telerik UI for WPF EntityFrameworkDataSource Homepage](https://www.telerik.com/products/wpf/entity-framework-data-source.aspx)
* [Get Started with the Telerik UI for WPF EntityFrameworkDataSource](https://www.telerik.com/products/wpf/documentation/controls/radentityframeworkdatasource/entityframework-getting-started)
* [Telerik UI for WPF API Reference](https://docs.telerik.com/devtools/wpf/api/)
* [Getting Started with Telerik UI for WPF Components](https://www.telerik.com/products/wpf/documentation/getting-started/first-steps-nuget)
* [Telerik UI for WPF Virtual Classroom (Training Courses for Registered Users)](https://learn.telerik.com/learn/course/external/view/elearning/16/telerik-ui-for-wpf)
* [Telerik UI for WPF EntityFrameworkDataSource Forums](https://www.telerik.com/forums/wpf)
* [Telerik UI for WPF Knowledge Base](https://docs.telerik.com/devtools/wpf/knowledge-base)
