Is there a way to get a list of tables and relationships from an EDMX using the MetadataLoader?
Try this:
MetadataWorkspace metadataWorkspace = null;
bool allMetadataLoaded = loader.TryLoadAllMetadata(inputFile, out metadataWorkspace);
StoreItemCollection itemCollection = (StoreItemCollection)metadataWorkspace.GetItemCollection(DataSpace.SSpace);
// Tables
foreach (var entity in itemCollection.GetItems())
{
...
}
// Relations
foreach (var association in itemCollection.GetItems())
{
...
}