title: Reading related data in Entity framework
body: <p>I have two tables named StaticPages and StaticPagesContents that these two tables ralated together with StaticSn from StaticPages and StaticID from StaticPagesContents .
  I need to read a field from StaticPagesContents named PageContent and display this data on one of my controls so i use this code :</p>
  
  <pre><code>if (DropDownList1.SelectedIndex &gt; -1)
          {
              using (shahedWSEntities myEntity = new shahedWSEntities())
              {
                  var content = (from s in myEntity.StaticPages
                                 where s.StaticSn == Convert.ToInt32(DropDownList1.SelectedValue)
                                 select s);
                  if (!object.ReferenceEquals(content, null))
                  { 
                      CKEditorControl1.Text=...
                  }
              }
          }
  </code></pre>
  
  <p>but i can't access to StaticPageContents's PageContent field . could you please help me?</p>