Does anyone know how one goes about obtaining the schema information out of an edmx generated Entity Framework?
Specifically I want to manage to traverse the foreign
You can use the following approach --
foreach (EntityType entity in ItemCollection.GetItems().OrderBy(e => e.Name)) foreach (var entityMember in entity.NavigationProperties) foreach (System.Data.Metadata.Edm.EdmProperty foreignKey in entityMember.GetDependentProperties()) { //... use foreignKey }