I have an ASP.NET 4.0 web application that uses Entity Framework 4.3.1 and Self-Tracking Entities. It works fine until I add another ADO.NET Entity Data Model (.edmx) to it. After that, the project compiles without any errors, but as soon as it calls the object of the self-monitoring object, the application creates a System.InvalidOperationException: information about the matching and metadata cannot be found for EntityType 'namespace.classname'.
I tried adding a second Entity Data model to a different namespace, but that doesn't help. If I remove the added .edmx file from the project, the problem will disappear. If I delete the entity tracking files (Model.tt and Model.Context.tt), the problem goes away.
It seems that Self-Tracking Entities cannot function normally when there is more than the Entity data model.
Has anyone else tested and solved this problem?
source share