The entity type <type> is not part of the model for the current context

这是在网站里遇到的一个错误,自动生成的不能手动添加,

reference:

http://stackoverflow.com/questions/19695545/the-entity-type-xxx-is-not-part-of-the-model-for-the-current-context

When I created a strong view using the Quickfix context it blew up, because it was trying to associate a class that did not exists in the model. So by deleting all the extra DAL and Model Context, creating my view using the Entity.context that showed up in the Strong view menu everything worked just fine.

通过文本模板自动生成类能解决该问题。

 

posted @ 2015-05-01 15:38  BloggerSb  阅读(2228)  评论(0编辑  收藏  举报