当前位置:Gxlcms > 数据库问题 > EntityFramework 找不到方法:“Void System.Data.Entity.DbModelBuilder.RegisterEntityType

EntityFramework 找不到方法:“Void System.Data.Entity.DbModelBuilder.RegisterEntityType

时间:2021-07-01 10:21:17 帮助过:12人阅读

问题原因,EF当前版本没有该方法,将EF版本升级即可。

1、packages.config

 

 <package id="EntityFramework" version="6.1.3" targetFramework="net40" />

2、app.config

<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.1.3.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
</configSections>

EntityFramework 找不到方法:“Void System.Data.Entity.DbModelBuilder.RegisterEntityType

标签:com   info   publickey   require   build   .config   ati   uil   type   

人气教程排行