Entity framework error "Entity type is not mapped." Entity framework error "Entity type is not mapped." asp.net asp.net

Entity framework error "Entity type is not mapped."


Each entity must be mapped either to QueryView or to database table / defining query. You can't create the entity which is not mapped at all. If you want to define result of function import which is not mapped in your model you must define your VendorBrief as complex type.


  1. Open the datamodel (edmx file)
  2. Right-click in the datamodel and select Model Browser
  3. In the model browser window go to Function Imports and delete the appropriate items.


Try to open your Entity file diagram, the .edmx. And then delete all the tables using DEL. And then right click inside the diagram and select Update Model from Database.

The Visual Studio is a little bugged in this stuff.