title: Binding parent and child data into DataGrid in ria services for silverlight 4
body: <p>i've started learning Silverlight 4 RIA services. i've gone over alot of samples of how to bind data to a grid. but always there object being bound is a simple one with no child tables. </p>
  
  <p>in my DB there's a table for employees and a table for city names (with id field as pk). in the employee table theres a FK to the CityId field.</p>
  
  <p>the first thing i've tried to do was to show a list of employees and their city name. 
  this i've done in the normal way shown in all the tutorials (create edmx, create domain service and using the datasource window to create the datagrid)</p>
  
  <p>the problems started when i tried binding the name of the city throw the FK between employee (parent entity) and citytypes (child entity)</p>
  
  <p>this line works fine:</p>
  
  <p><code>
  &lt;sdk:DataGridTextColumn x:Name="cityCodeColumn" Binding="{Binding Path=CityCode}" 
  Header="CityCode" Width="SizeToHeader" /&gt;
  </code></p>
  
  <p>this line does not:</p>
  
  <p><code>
  &lt;sdk:DataGridTextColumn x:Name="cityNameColumn" Binding="{Binding Path=CityType.Name}" Header="CityName" Width="SizeToHeader" /&gt;
  </code></p>
  
  <p>after reading some more i've realized that the the domain service does not pass only the data of the entity selected by the LINQ command, and does not pass child entities info.
  unless using the include attribute.</p>
  
  <p>so my question is , is there a pattern of building a silverlight application with out signing all the associations between entities as included?</p>
  
  <p>thanks, 
  Oren </p>