The entity type <type> is not part of the model for the current context
2015-05-01 15:38
661 查看
这是在网站里遇到的一个错误,自动生成的不能手动添加,
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.
通过文本模板自动生成类能解决该问题。
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.
通过文本模板自动生成类能解决该问题。
相关文章推荐
- The entity type <type> is not part of the model for the current context
- The entity type FooterLogo is not part of the model for the current context.zai
- EntityFramework错误:The entity type XXX is not part of the model for the current context
- The method setClass(Context, Class<?>) in the type Intent is not applicable for the问题
- The method setClass(Context, Class<?>) in the type Intent is not applicable for the arguments (GameV
- The method setClass(Context, Class<?>) in the type Intent is not applicable for the arguments (GameV
- 关于The method setMapperClass(Class<? extends Mapper>) in the type Job is not applicable for the argum
- BEA-290074 <Deployment service servlet received file download request for file "security/SerializedSystemIni.dat". The file may exist, but download of this file is not allowed.>
- The method add(Fragment) in the type ArrayList<Fragment> is not applicable for the arguments (ImageF
- The MagicAjax HttpModule is not included in web.config. Add [<httpModules><add name="MagicAjax" type="MagicAjax.MagicAja
- The method execute(Void[]) is ambiguous for the type new AsyncTask<Void,Void,Void>(){}
- 在eclipse中执行team->pull出现the current branch is not configured for pull
- 执行 maven 命令 报错Unable to add module to the current project as it is not of packaging type 'pom'
- Unable to add module to the current project as it is not of packaging type 'pom' 问题解决
- <java>No enclosing instance of type GraphicFrame is accessible. Must qualify the allocation with an
- the type List is not generic; it cannot be parameterized with arguments<T>解决办法
- There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key ''.
- android The method execute(Void[]) is ambiguous for the type new AsyncTask<Void,Void,Void>(){}
- 报错 :The method list(String, Object[]) is ambiguous for the type BaseHibernateDao<M,PK>
- The method create(Context, Uri) in the type MediaPlayer is not applicable for the arguments (new Vie