Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Edited Issue: Problem resolving mapping and metadata from non-POCO ObjectContext [519]

$
0
0
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.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>