When using ObjectContext and EDMX in a project with two entities (with one *.* association) the mapping information seems to be missing.
ClrPerspective.TryGetTypeByName(...) attempts to resolve the type mapping from OSpace when the EDM type is actually stored in CSpace. The lookup fails, thus forcing an InvalidOperationException with the following message: "Mapping and metadata information could not be found for EntityType 'System.Data.Entity.Model.Supplier'."
The project seems quite standard and works as expected when reproduced in Dev10.
ClrPerspective.TryGetTypeByName(...) attempts to resolve the type mapping from OSpace when the EDM type is actually stored in CSpace. The lookup fails, thus forcing an InvalidOperationException with the following message: "Mapping and metadata information could not be found for EntityType 'System.Data.Entity.Model.Supplier'."
The project seems quite standard and works as expected when reproduced in Dev10.