EF5 升级EF6 错误解决方法

来源:互联网 发布:经济评价软件 编辑:程序博客网 时间:2024/05/14 04:11

需要表明EF版本,如果你是vs2010或者vs2012的用户,你应该注意这一点

复制代码
  <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.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089
" requirePermission="false" /></configSections>
复制代码
复制代码
 <entityFramework>    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">      <parameters>        <parameter value="v11.0" />      </parameters>    </defaultConnectionFactory>    <providers>      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />    </providers>  </entityFramework>
复制代码
0 0
原创粉丝点击