码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2017-09-14 18:46:07      阅读:194      评论:0      收藏:0      [点我收藏+]

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

问题原因,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   

原文地址:http://www.cnblogs.com/akiing/p/7521534.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!