The entity type <type> is not part of the model for the current context
2017-07-05 16:20
841 查看
这个错误是由于没有在DbContext将某个对象实例化
在继承自DbContext的对象中添加 public DbSet admin { get; set; }
在继承自DbContext的对象中添加 public DbSet admin { get; set; }
相关文章推荐
- 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 arguments (GameV
- 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问题
- 关于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 method execute(Void[]) is ambiguous for the type new AsyncTask<Void,Void,Void>(){}
- ArcGIS Engine中初始化许可常见问题归纳,the application is not licensed to create or modify schema for this type of data
- There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key ''.
- The MagicAjax HttpModule is not included in web.config. Add [<httpModules><add name="MagicAjax" type
- The type List is not generic; it cannot be parameterized with arguments <Integer>
- android The method execute(Void[]) is ambiguous for the type new AsyncTask<Void,Void,Void>(){} (转)
- <java>No enclosing instance of type GraphicFrame is accessible. Must qualify the allocation with an
- The MagicAjax HttpModule is not included in web.config. Add [<httpModules><add name="MagicAjax" type="MagicAjax.MagicAja
- 执行 maven 命令 报错Unable to add module to the current project as it is not of packaging type 'pom'
- The method load(Class, Serializable) in the type Session is not applicable for the arguments (Class<
- Unable to add module to the current project as it is not of packaging type 'pom' 问题解决