You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: controls/raddataservicedatasource/getting-started/getting-started.md
+9-16Lines changed: 9 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
---
2
2
title: Getting Started
3
3
page_title: Getting Started
4
-
description: Check our "Getting Started" documentation article for the RadDataServiceDataSource {{ site.framework_name }} control.
4
+
description: Check our "Getting Started" documentation article for the RadDataServiceDataSource WPF control.
5
5
slug: raddataservicedatasource-getting-started
6
6
tags: getting,started
7
7
published: True
8
8
position: 0
9
9
---
10
10
11
-
# Getting Started with {{ site.framework_name }} DataServiceDataSource
11
+
# Getting Started with WPF DataServiceDataSource
12
12
13
-
This tutorial will walk you through the creation of a sample application that contains __RadDataServiceDataSource__ control.
13
+
This tutorial will walk you through the creation of a sample application that contains `RadDataServiceDataSource` control.
14
14
15
15
## Adding Telerik Assemblies Using NuGet
16
16
17
-
To use __RadDataServiceDataSource__ when working with NuGet packages, install the `Telerik.Windows.Controls.DataServices.for.Wpf.Xaml` package. The [package name may vary]({%slug nuget-available-packages%}) slightly based on the Telerik dlls set - [Xaml or NoXaml]({%slug xaml-vs-noxaml%})
17
+
To use RadDataServiceDataSource when working with NuGet packages, install the `Telerik.Windows.Controls.DataServices.for.Wpf.Xaml` package. The [package name may vary]({%slug nuget-available-packages%}) slightly based on the Telerik dlls set - [Xaml or NoXaml]({%slug xaml-vs-noxaml%})
18
18
19
19
Read more about NuGet installation in the [Installing UI for WPF from NuGet Package]({%slug nuget-installation%}) article.
20
20
@@ -28,19 +28,15 @@ If you are not using NuGet packages, you can add a reference to the following as
28
28
*__Telerik.Windows.Controls__
29
29
*__Telerik.Windows.Controls.DataServices__
30
30
31
-
If you are using OData version 3 you need to add reference to __Telerik.Windows.Controls.DataServices50__which is built against __Microsoft.Data.Services.Client__ with version __5.6.4__.
31
+
>With the release of the 2025 Q4, the __Telerik.Windows.Controls.DataServices50__ and __Telerik.Windows.Controls.DataServices60__ assemblies have been removed. Instead, use the __Telerik.Windows.Controls.DataServices__ assembly, which is built against the __Microsoft.OData.Client__NuGet package with version __7.8.3__.
32
32
33
-
For OData version 4 support, you need to add reference to __Telerik.Windows.Controls.DataServices60__ which is built against __Microsoft.OData.Client__ with __version 6.15.0__.
34
-
35
-
Since the __R2 2021__ release, you can find a __Telerik.Windows.Controls.DataServices__ dll in the __WPF60__ and __WPF70__ folders built against __Microsoft.OData.Client__ with __version 7.8.3__.
36
-
37
-
You can find the required assemblies for each control from the suite in the {% if site.site_name == 'Silverlight' %}[Controls Dependencies]({%slug installation-installing-controls-dependencies%}){% else %}[Controls Dependencies]({%slug installation-installing-controls-dependencies-wpf%}){% endif %} help article.
33
+
You can find the required assemblies for each control from the suite in the[Controls Dependencies]({%slug installation-installing-controls-dependencies-wpf%}) help article.
38
34
39
35
## Adding RadDataServiceDataSource
40
36
41
-
We will use __RadGridView__ control in order to visualize the data.
37
+
We will use `RadGridView` control in order to visualize the data.
42
38
43
-
__Example 1: Using RadDataServiceDataSource with RadGridView__
39
+
__Using RadDataServiceDataSource with RadGridView__
Copy file name to clipboardExpand all lines: controls/radentityframeworkdatasource/entityframework-getting-started.md
+18-30Lines changed: 18 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,77 +1,69 @@
1
1
---
2
2
title: Getting Started
3
3
page_title: Getting Started
4
-
description: Check our "Getting Started" documentation article for the RadEntityFrameworkDataSource {{ site.framework_name }} control.
4
+
description: Check our "Getting Started" documentation article for the RadEntityFrameworkDataSource WPF control.
5
5
slug: entityframework-getting-started
6
6
tags: getting,started
7
7
published: True
8
8
position: 3
9
9
---
10
10
11
-
# Getting Started with {{ site.framework_name }} EntityFrameworkDataSource
11
+
# Getting Started with WPF EntityFrameworkDataSource
12
12
13
-
This tutorial will walk you through the creation of a sample application that contains __RadGridView__ bound to __RadEntityFrameworkDataSource__.
13
+
This tutorial will walk you through the creation of a sample application that contains `RadGridView` bound to `RadEntityFrameworkDataSource`.
14
14
15
15
*[Creating the WPF Application](#creating-the-wpf-application)
16
16
*[Creating the Model](#creating-the-model)
17
17
*[Adding RadGridView and RadEntityFrameworkDataSource](#adding-radgridview-and-radentityframeworkdatasource)
18
18
19
-
As of version __2013 Q3 SP1__ we have added support for __EntityFramework 6.0__. You will need to reference the __Telerik.Windows.Controls.EntityFramework60__ assembly, rather than the __Telerik.Windows.Controls.EntityFramework__ one in order for this to work.
19
+
>With the release of the __2025 Q4__, the __Telerik.Windows.Controls.EntityFramework__ assembly has been removed. Instead, you will need to reference the __Telerik.Windows.Controls.EntityFramework60__ assembly, which is built against the __EntityFramework__ NuGet package with version __6.5.1__.
20
20
21
21
## Adding Telerik Assemblies Using NuGet
22
22
23
-
To use __RadEntityFrameworkDataSource__ when working with NuGet packages, install the `Telerik.Windows.Controls.EntityFramework.for.Wpf.Xaml` package. The [package name may vary]({%slug nuget-available-packages%}) slightly based on the Telerik dlls set - [Xaml or NoXaml]({%slug xaml-vs-noxaml%})
23
+
To use RadEntityFrameworkDataSource when working with NuGet packages, install the `Telerik.Windows.Controls.EntityFramework.for.Wpf.Xaml` package. The [package name may vary]({%slug nuget-available-packages%}) slightly based on the Telerik dlls set - [Xaml or NoXaml]({%slug xaml-vs-noxaml%})
24
24
25
25
Read more about NuGet installation in the [Installing UI for WPF from NuGet Package]({%slug nuget-installation%}) article.
26
26
27
27
>tip With the 2025 Q1 release, the Telerik UI for WPF has a new licensing mechanism. You can learn more about it [here]({%slug installing-license-key%}).
28
28
29
29
## Creating the WPF Application
30
30
31
-
1. Note that __RadEntityFrameworkDataSource__ is built on top of the [ADO.NET Entity Framework](https://docs.microsoft.com/en-us/ef/ef6/). Basic Entity Framework experience is required for working with __RadEntityFrameworkDataSource__.
31
+
1. Note that RadEntityFrameworkDataSource is built on top of the [ADO.NET Entity Framework](https://docs.microsoft.com/en-us/ef/ef6/). Basic Entity Framework experience is required for working with RadEntityFrameworkDataSource.
32
32
33
33
2. Start Visual Studio and create a new WPF Application.
34
34
35
35
## Creating the Model
36
36
37
37
Now that we have the application, we will add our entity model using the AdventureWorks database.
38
38
39
-
1. In the project add a new __ADO.NET Entity Data Model__. You need to make sure that **Data** is selected from the left menu.
39
+
1. In the project add a new __ADO.NET Entity Data Model__. You need to make sure that __Data__ is selected from the left menu.
40
40

41
41
42
42
2. Choose to create a model using the code first approach from an existing database.
43
43

44
44
45
45
3. Choose the data connection (for example the __AdventureWorks__ database). In order to learn how to add the AdventureWorks database, check out the [AdventureWorks Readme](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works) article.
46
46
47
-
4. Generate the entities from all of the tables in the __AdventureWorks__ database.
47
+
4. Generate the entities from all of the tables in the AdventureWorks database.
48
48
49
49
5. Click __Finish__ and __rebuild the solution__.
50
50
51
51
## Adding RadGridView and RadEntityFrameworkDataSource
52
52
53
53
Now let's go to the client side.
54
54
55
-
**1.** Add References to the following __Telerik__ assemblies:
55
+
**1.** Add References to the following Telerik assemblies:
56
56
57
57
*__Telerik.Licensing.Runtime__
58
-
*__Telerik.Windows.Controls__ (mandatory for both __RadGridView__ and __RadEntityFrameworkDataSource__)
58
+
*__Telerik.Windows.Controls__ (mandatory for both RadGridView and RadEntityFrameworkDataSource)
59
+
*__Telerik.Windows.Controls.EntityFramework60__ (mandatory for RadEntityFrameworkDataSource with EF __6.0__ or later)
60
+
*__Telerik.Windows.Controls.GridView__ (mandatory for RadGridView)
61
+
*__Telerik.Windows.Controls.Input__ (mandatory for RadGridView)
62
+
*__Telerik.Windows.Data__ (mandatory for both RadGridView and RadEntityFrameworkDataSource)
59
63
60
-
*__Telerik.Windows.Controls.EntityFramework__ (mandatory for __RadEntityFrameworkDataSource__ with EF **5.0** or previous)
64
+
**2.** Now add the RadGridView and RadEntityFrameworkDataSource controls to the main window. The following example demonstrates how you can do that.
61
65
62
-
or
63
-
64
-
*__Telerik.Windows.Controls.EntityFramework60__ (mandatory for __RadEntityFrameworkDataSource__ with EF **6.0** or later)
65
-
66
-
*__Telerik.Windows.Controls.GridView__ (mandatory for __RadGridView__)
67
-
68
-
*__Telerik.Windows.Controls.Input__ (mandatory for __RadGridView__)
69
-
70
-
*__Telerik.Windows.Data__ (mandatory for both __RadGridView__ and __RadEntityFrameworkDataSource__)
71
-
72
-
**2.** Now add the __RadGridView__ and __RadEntityFrameworkDataSource__ controls to the main window. **Example 1** demonstrates how you can do that.
73
-
74
-
__Example 1: Adding RadGridView and RadEntityFrameworkDataSource__
66
+
__Adding RadGridView and RadEntityFrameworkDataSource__
@@ -94,8 +86,6 @@ __Example 1: Adding RadGridView and RadEntityFrameworkDataSource__
94
86
</Window>
95
87
```
96
88
97
-
>importantSince __Q3 SP1 2012__ we have added the __RadEntityFrameworkDataSource.DbContext__ property which should be set instead of the **ObjectContext** property for versions of Entity Framework newer than version **5.0**. If you are using an older version of Entity Framework, you can set the **RadEntityFrameworkDataSource.ObjectContext** property.
98
-
99
89
Several important things to notice:
100
90
101
91
* The import of the telerik schema: __xmlns:telerik="[http://schemas.telerik.com/2008/xaml/presentation](http://schemas.telerik.com/2008/xaml/presentation)__
@@ -108,9 +98,9 @@ Several important things to notice:
108
98
109
99
## RelatedObjects
110
100
111
-
The __RelatedObjects__ property of the RadEntityFrameworkDataSource allows you to specify the names of the related entities that need to be retrieved. For example, if your main entity set is called "Customers", you might want to retrieve the "Orders" collection in case you want to get the related Orders for each Customer from the database.
101
+
The `RelatedObjects` property of the RadEntityFrameworkDataSource allows you to specify the names of the related entities that need to be retrieved. For example, if your main entity set is called "Customers", you might want to retrieve the "Orders" collection in case you want to get the related Orders for each Customer from the database.
0 commit comments