<?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>Visual Studio Data : .NET RIA Services</title><link>http://blogs.msdn.com/vsdata/archive/tags/.NET+RIA+Services/default.aspx</link><description>Tags: .NET RIA Services</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>The Data Source Window Support in WCF RIA Services</title><link>http://blogs.msdn.com/vsdata/archive/2009/12/01/the-data-source-window-support-in-wcf-ria-services.aspx</link><pubDate>Tue, 01 Dec 2009 05:12:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9930570</guid><dc:creator>XiaoyingGuo</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9930570.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9930570</wfw:commentRss><wfw:comment>http://blogs.msdn.com/vsdata/rsscomments.aspx?PostID=9930570</wfw:comment><description>&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;WCF RIA Services Beta was announced at PDC09 one week ago. It contains a lot of runtime support to make the experience of building a web business application much easier using Silverlight. Besides, there are also some tooling supports to help developers write less trivial code but to make the application work as expected. The Data Source Window support is one of them to help setting business objects data binding onto UI controls in a second. Actually, it is not a new concept in other technologies. The Data Source Window support for data-binding has been working for different technologies in VS2010, including WPF and WinForms. This article will use a simple application to show you how to leverage the Data Source Window support to do data-binding through a couple of drag-and-drops in WCF RIA Services scenarios.     &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;font size="2"&gt;Get ready to the project       &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;To try it out, you need to install the &lt;/font&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkID=177508"&gt;&lt;font size="2"&gt;WCF RIA Services Preview&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt; on VS2010 Beta2, which works on Silverlight 4.&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;Then follow the steps below to display your business objects into the Data Source Window:      &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;     &lt;div style="text-indent: -0.25in; mso-list: l1 level1 lfo1" class="MsoListParagraphCxSpFirst"&gt;&lt;font size="2"&gt;&lt;span style="mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: ignore"&gt;1.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Create a new Silverlight 4 Application, and check “Enable .NET RIA Services” in the New Silverlight Application Wizard. The project template and wizard will create a client project and a server project with WCF RIA Services enabled.&lt;/font&gt;&lt;/div&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;ol&gt;   &lt;li&gt;     &lt;div style="text-indent: -0.25in; mso-list: l1 level1 lfo1" class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;&lt;span style="mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: ignore"&gt;2.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;On the Server project, add ADO.NET Entity Data Model item. Here the example uses Employee and EmployeeAddress tables in the AdventureWorks database. &lt;/font&gt;&lt;/div&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;ol&gt;   &lt;li&gt;     &lt;div style="text-indent: -0.25in; mso-list: l1 level1 lfo1" class="MsoListParagraphCxSpLast"&gt;&lt;font size="2"&gt;&lt;span style="mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: ignore"&gt;3.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Build the solution and add a new DomainService class into the Server project. Let’s call it EmployeeService and add the following code into the file:          &lt;p&gt;&lt;/p&gt;       &lt;/font&gt;&lt;/div&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p style="line-height: normal; text-indent: 0.5in; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;public&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; &lt;span style="color: #2b91af"&gt;IQueryable&lt;/span&gt;&amp;lt;&lt;span style="color: #2b91af"&gt;Employee&lt;/span&gt;&amp;gt; GetEmployees()      &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;{      &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: blue"&gt;this&lt;/span&gt;.ObjectContext.Employees.Include(&lt;span style="color: #a31515"&gt;&amp;quot;EmployeeAddresses&amp;quot;&lt;/span&gt;).OrderBy(e=&amp;gt;e.EmployeeID);      &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;font size="2"&gt;Also add [Include] attribute on the EmployeeAddresses property in Employee object in the metadata file like below:&lt;/font&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; mso-bidi-font-size: 15.0pt"&gt;&lt;font size="2"&gt;[&lt;span style="color: #2b91af"&gt;Include&lt;/span&gt;]        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin: 0in 0in 0pt 0.5in; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;public&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; &lt;span style="color: #2b91af"&gt;EntityCollection&lt;/span&gt;&amp;lt;&lt;span style="color: #2b91af"&gt;EmployeeAddress&lt;/span&gt;&amp;gt; EmployeeAddresses;&lt;/span&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;     &lt;div style="text-indent: -0.25in; mso-list: l1 level1 lfo1" class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;&lt;span style="mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: ignore"&gt;4.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Build the solution. And now let’s open the MainPage.xaml and the Data Source Window through Data&lt;span style="font-family: wingdings; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-char-type: symbol; mso-symbol-font-family: wingdings"&gt;&lt;span style="mso-char-type: symbol; mso-symbol-font-family: wingdings"&gt;à&lt;/span&gt;&lt;/span&gt;Show Data Source Window. You will see that the business objects added into the solution has been displayed in the Data Source Window now like below:          &lt;p&gt;&lt;/p&gt;       &lt;/font&gt;&lt;/div&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image002_4.png"&gt;&lt;font size="2"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image002_4.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image002_thumb_1.png" width="240" height="145" v:shapes="Picture_x0020_4" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p style="margin-left: 0in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;font size="2"&gt;Generate Employee details and EmployeeAddress data grid view       &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="margin-left: 0in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;Suppose we want our UI to look like below to display Employee data and their EmployeeAddress information in a data grid view:&lt;/font&gt;&lt;/p&gt;  &lt;p style="margin-left: 0in; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;Let’s go through each of control one by one:&lt;/font&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;     &lt;div style="text-indent: -0.25in; mso-list: l2 level1 lfo2" class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: ignore"&gt;1.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;Adding an Employee details view with data-binding           &lt;p&gt;&lt;/p&gt;         &lt;/b&gt;&lt;/font&gt;&lt;/div&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;In the tree view of the Data Source Window, we can see the business objects and data fields are displayed together with control icons. The icons indicate which control will be generated after drag and drop to a container control (such as Grid, ScrollView, etc.) in the Silverlight designer surface. The Data Source Window set default controls based on the data type. From the picture above, we can see the default control for Employee is a DataGrid. But we definitely can change that by clicking the arrow button next to Employee:     &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image004_4.png"&gt;&lt;font size="2"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image004_4.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image004" border="0" alt="clip_image004" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image004_thumb_1.png" width="240" height="197" v:shapes="Picture_x0020_5" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;    &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;Here, let’s choose Details in the drop-down list. We’ll see the icon has changed after clicking that:     &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image006_4.png"&gt;&lt;font size="2"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image006_4.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image006" border="0" alt="clip_image006" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image006_thumb_1.png" width="240" height="134" v:shapes="Picture_x0020_6" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;    &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;The Data Source Window also allows us to add more control association&lt;span style="color: red"&gt;s&lt;/span&gt; (including user custom controls) with a type through Customize Control Browser:      &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image008_4.png"&gt;&lt;font size="2"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image008_4.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image008" border="0" alt="clip_image008" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image008_thumb_1.png" width="240" height="200" v:shapes="Picture_x0020_7" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;span style="mso-tab-count: 1"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image010_4.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image010" border="0" alt="clip_image010" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TheDataSourceWindowSupportinWCFRIAServic_B991/clip_image010_thumb_1.png" width="240" height="197" v:shapes="Picture_x0020_1" /&gt;&lt;/a&gt;&lt;/span&gt;      &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast"&gt;&lt;font size="2"&gt;Now let’s drag the Employee node and drop it to the designer surface of MainPage.xaml. We will see the details view is generated for the Employee. Check the code in XAML, we’ll see the code is generated like below:     &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 15pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;Grid&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; x&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;:&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;Name&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; Background&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=&amp;quot;White&amp;quot;&amp;gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;riaControls&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;:&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;DomainDataSource&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; AutoLoad&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=&amp;quot;True&amp;quot;&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; Height&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; LoadedData&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=&amp;quot;employeeDomainDataSource_LoadedData&amp;quot;&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; Name&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=&amp;quot;employeeDomainDataSource&amp;quot;&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; QueryName&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=&amp;quot;GetEmployeesQuery&amp;quot;&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; Width&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=&amp;quot;0&amp;quot;&amp;gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;riaControls&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;:&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;DomainDataSource.DomainContext&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;my&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;:&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;EmployeeContext&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; /&amp;gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;riaControls&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;:&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;DomainDataSource.DomainContext&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;riaControls&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;:&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;DomainDataSource&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;     &lt;p&gt;&amp;#160;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;Grid&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; DataContext&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=&amp;quot;{&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;Binding&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; ElementName&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=employeeDomainDataSource,&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; Path&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=Data}&amp;quot;&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; ....&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin: 0in 0in 0pt 1in; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;....&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;TextBlock&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; Text&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=&amp;quot;Birth Date:&amp;quot;&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; ....&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; /&amp;gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;TextBox&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; Text&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=&amp;quot;{&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;Binding&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; Path&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=BirthDate,&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; Mode&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=TwoWay,&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; ValidatesOnExceptions&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=true,&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; NotifyOnValidationError&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;=true}&amp;quot;&lt;/span&gt;&lt;span style="font-family: consolas; color: red; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; ....&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt; /&amp;gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin: 0in 0in 0pt 1in; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;....     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;Grid&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;     &lt;p&gt;&amp;#160;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none" class="MsoNormal"&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: consolas; color: #a31515; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;Grid&lt;/span&gt;&lt;span style="font-family: consolas; color: blue; font-size: 10pt; mso-bidi-font-size: 15.0pt"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;The DomainDataSource is generated, and the generated input controls set the binding path to the DomainDataSource so as to load data. The validation is also enabled in the binding path. &lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;Run the application, we will see Employee data is loaded into the details view without writing any code. &lt;/font&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;     &lt;div style="text-indent: -0.25in; mso-list: l2 level1 lfo2" class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: ignore"&gt;2.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;Associate a DataPager with the Employee details           &lt;p&gt;&lt;/p&gt;         &lt;/b&gt;&lt;/font&gt;&lt;/div&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;To achieve this, you can follow the steps below:     &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;p style="text-indent: -0.25in; margin-left: 0.75in; mso-list: l0 level1 lfo3; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;&lt;span style="mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: ignore"&gt;a)&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Drag and drop a DataPager from the Toolbox (if you don’t find it, you can add that by right-click the Toolbox and select Choose Items…) to the designer surface.       &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;p style="text-indent: -0.25in; margin-left: 0.75in; mso-list: l0 level1 lfo3; mso-add-space: auto" class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;&lt;span style="mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: ignore"&gt;b)&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Drag and drop Employee node to the DataPager that is just dropped on the designer.       &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;p style="text-indent: -0.25in; margin-left: 0.75in; mso-list: l0 level1 lfo3; mso-add-space: auto" class="MsoListParagraphCxSpLast"&gt;&lt;font size="2"&gt;&lt;span style="mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: ignore"&gt;c)&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;In the property window, set PageSize of the DataPager to 1.       &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;p style="margin-left: 0.5in" class="MsoNormal"&gt;&lt;font size="2"&gt;Now we can run the application and see how the DataPager works with the Employee details.     &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;     &lt;div style="text-indent: -0.25in; mso-list: l2 level1 lfo2" class="MsoListParagraphCxSpFirst"&gt;&lt;font size="2"&gt;&lt;span style="mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: ignore"&gt;3.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;Add EmployeeAddress data grid view which is corresponding to what is selected in the Employee details view&lt;/b&gt;          &lt;p&gt;&lt;/p&gt;       &lt;/font&gt;&lt;/div&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;font size="2"&gt;To do so is pretty simple. The tree view also displays the relationships between business objects. For example, here we can see Employee has relationship with itself, as well as EmployeeAddress. Let’s drag and drop the EmployeeAddresses in the Employee tree to the designer surface. We will see a DataGrid is generated with columns customized through the Data Source Window. &lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast"&gt;&lt;font size="2"&gt;Run the application. Now with each selected Employee, the DataGrid will display corresponding EmployeeAddress data.      &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;As a matter of fact, the Data Source Window supports more scenarios than this. It will save a lot of coding time on some trivial data-binding work if it’s fully made use of. To get more information about it, check the &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ee796239(VS.91).aspx"&gt;&lt;font size="2"&gt;walkthrough&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt; on MSDN, which will help you get full understanding about this feature. Enjoy!     &lt;p&gt;&lt;/p&gt;   &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9930570" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Data+Binding/default.aspx">Data Binding</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/.NET+RIA+Services/default.aspx">.NET RIA Services</category></item><item><title>Hello, TechEd 2009!</title><link>http://blogs.msdn.com/vsdata/archive/2009/06/30/hello-teched-2009.aspx</link><pubDate>Tue, 30 Jun 2009 05:06:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9809096</guid><dc:creator>RongLu</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9809096.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9809096</wfw:commentRss><wfw:comment>http://blogs.msdn.com/vsdata/rsscomments.aspx?PostID=9809096</wfw:comment><description>&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HelloTechEd2009_8A52/clip_image002_2.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HelloTechEd2009_8A52/clip_image002_thumb.jpg" width="246" height="127" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;May 11 – 15, 2009. Los Angeles.&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;It is always exciting to attend conferences like TechEd and talk to the users like you! I attended &lt;a href="https://www.msteched.com/teched/default.aspx"&gt;Teched 2009 North America&lt;/a&gt;, which took place in Los Angeles last month, as a Visual Studio staff, and spent 20+ hours standing at Visual Studio booth. I really enjoyed experiencing TechEd once again and enjoyed the moments when you told us the products are helping to do your daily work more efficiently. Hearing your feedback is also very important to us, and it is exactly the reason why we are there at the conference! For those who were also at TechEd this year, I hope you enjoyed the sunshine in LA and liked hundreds of sessions there!&lt;/p&gt;  &lt;p&gt;This year, Windows 7 and Windows Server 2008 R2 drew a lot of attentions. Mark Russinovich, who is a Technical Fellow at Microsoft, demoed quite some new Windows 7 features at keynote on the first day. &lt;/p&gt;  &lt;p&gt;- One of my favorite features in Windows 7 is the &lt;a href="http://technet.microsoft.com/en-us/windows/dd320286.aspx"&gt;Problem Steps Recorder&lt;/a&gt; which helps customers (or friends, or family) to easily record what they did and what happened on their machine instead describing the repro steps, therefore it’ll largely help the ITPros to understand and troubleshoot the problems. &lt;/p&gt;  &lt;p&gt;- Another highlight in Windows 7 is &lt;a href="http://technet.microsoft.com/en-us/windows/dd320283.aspx"&gt;AppLocker&lt;/a&gt; feature, which helps IT Admins to easily specify what is allowed to run on user desktops and creates a secure environment.&lt;/p&gt;  &lt;p&gt;Windows 7 demo is followed by Windows Server 2008 R2 demos by Iain McDonald, including &lt;a href="https://msevents.microsoft.com/CUI/WebCastRegistrationConfirmation.aspx?culture=en-US&amp;amp;RegistrationID=1302218564&amp;amp;Validate=false"&gt;the File Classification Infrastructure&lt;/a&gt; which helps ITPros to establish policies for classifying files and then performing common administrative tasks based on the classification.&lt;/p&gt;  &lt;p&gt;Another hot topic at TechEd was Silverlight 3. (download &lt;a href="http://silverlight.net/getstarted/silverlight3/default.aspx"&gt;Silverlight 3 Beta 1&lt;/a&gt;) If you are still wondering if you should choose Silverlight to build line of business applications, you should definitely try out Silverlight 3! Silverlight 3 has made Silverlight ready for building data-driven applications than ever before! A few Silverlight 3 controls that you might be interested in your business applications:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;ChildWindow &lt;/li&gt;    &lt;li&gt;DataForm&amp;#160; &lt;/li&gt;    &lt;li&gt;DataGrid &lt;/li&gt;    &lt;li&gt;DataPager &lt;/li&gt;    &lt;li&gt;Navigation (Frame, Page, Deeplinking..etc.) &lt;/li&gt;    &lt;li&gt;Validation UI (ErrorSummary)&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a name="_Sessions"&gt;&lt;/a&gt;These controls are available for download at &lt;a href="http://silverlight.net/samples/sl3/toolkitcontrolsamples/run/default.html"&gt;Silverlight Toolkit Sample&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Besides Silverlight 3 new controls, .NET RIA Services (download &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=76bb3a07-3846-4564-b0c3-27972bcaabce"&gt;&amp;quot;.NET Ria Services&amp;quot; March 2009 preview&lt;/a&gt;) is the other essential piece that makes build Silverlight business applications much easier. In short -&lt;/p&gt;  &lt;p&gt;&lt;i&gt;Microsoft .NET RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. The RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data&lt;b&gt; &lt;/b&gt;validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier.&lt;/i&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=76bb3a07-3846-4564-b0c3-27972bcaabce"&gt;&amp;quot;.NET Ria Services&amp;quot; March 2009 preview&lt;/a&gt; provides a great overview document that introduces .NET RIA Services in details, and it also described an end to end walkthrough for you to get started. Start building your Silverlight business applications today!&lt;/p&gt;  &lt;p&gt;It is great to see .NET RIA Services generated huge interests at TechEd, as our team is also working on some of the features in there. :) Please let us know if you have any comments and suggestions once you have tried it out. You are more than welcome to leave comments here or post at &lt;a href="http://silverlight.net/forums/53.aspx"&gt;.NET RIA Services forum&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Next year, TechEd will be back in New Orleans, June 7-11, 2010.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HelloTechEd2009_8A52/clip_image003_2.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image003" border="0" alt="clip_image003" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HelloTechEd2009_8A52/clip_image003_thumb.jpg" width="294" height="204" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;See you there!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9809096" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/Conference/default.aspx">Conference</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/.NET+RIA+Services/default.aspx">.NET RIA Services</category></item></channel></rss>