title: How can i get a entity with sub entities in Entity framework?
body: <p>i have a question about how to fill a json object to show a entity with sub entities.Thats because i have x that has got detail entity which is called y. </p>
  
  <pre><code>DbSyncScopeDescription scopeDesc = new DbSyncScopeDescription("filtered_customer");
  </code></pre>
  
  <p>// Definition for Customer.
  DbSyncTableDescription customerDescription =
      SqlSyncDescriptionBuilder.GetDescriptionForTable("Sales.Customer", serverConn);</p>
  
  <p>scopeDesc.Tables.Add(customerDescription);</p>
  
  <p>// Definition for CustomerContact, including the list of columns to include.
  Collection columnsToInclude = new Collection();
  columnsToInclude.Add("CustomerId");
  columnsToInclude.Add("PhoneType");
  DbSyncTableDescription customerContactDescription =
      SqlSyncDescriptionBuilder.GetDescriptionForTable("Sales.CustomerContact", columnsToInclude, serverConn);</p>
  
  <p>scopeDesc.Tables.Add(customerContactDescription);</p>