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

Commented Issue: The type 'XXXX' was not mapped. Check that the type has not been explicitly excluded by using the Ignore method or NotMappedAttribute data annotation. Verify that the type was defined as a class, is not primitive, nested or generic [714]

$
0
0
I'm getting the "The type 'XXXX' was not mapped. Check that the type has not been explicitly excluded by using the Ignore method or NotMappedAttribute data annotation. Verify that the type was defined as a class, is not primitive, nested or generic, and does not inherit from EntityObject." error despite the type not being ignored, nested or generic. <br /><br />I actually had this type working properly until I moved many of its properties off to a base type that I created on another library. I have the fealing having the base type on one library, and inheritor in another and the context in a third library seems to be causing the problem.
Comments: Hi Ours, Unfortunately this is not simple to fix. The way mapping between types in the model and CLR types is implemented means that significant changes need to be made to allow multiple types with the same name. This is something we plan to work on, but it seems very unlikely that it will fit into the schedule for EF6 and hence, realistically speaking, this will not make it into EF until a future release. Thanks, Arthur

Viewing all articles
Browse latest Browse all 10318

Trending Articles



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