title: Get Navigation Properties of given EntityType
body: <p>I am using <strong>VS2010, EF4.0</strong>. Need function like the following.</p>
  <pre><code>private string[] GetNaviProps(Type entityType)//eg typeof(Employee)
  {
      NorthwindEntities en = new NorthwindEntities();
      //here I return all Properties only for example
      return entityType.GetProperties().Select(p=&gt;p.Name).ToArray();
      //should return Orders,Territories...
  }
  </code></pre>
  <p>I have checked <a href="https://stackoverflow.com/questions/10251863/entity-framework-check-if-%20%20property-is-navigation-property">this</a>, but IObjectContextAdapter seems something in EF6.0 and .net4.5. I tried to replace it like</p>
  <pre><code>var workspace = en.MetadataWorkspace;
  </code></pre>
  <p>So it can compile, but exception throw at the 3nd line then.<br />
  Any help?</p>