首页 > Web开发 > 详细

CodeSimth - .Net Framework Data Provider 可能没有安装

时间:2016-05-13 09:31:07      阅读:326      评论:0      收藏:0      [点我收藏+]

使用CodeSimth 连接SQLite数据库库 提示错误

codesmith 6以上的版本,说是支持sqlite生成,也有对应的sqliteprovider.dll,但是使用时却说Test failed.  找不到请求的 .Net Framework Data Provider。可能没有安装。

 

拷贝下面dll 到 CodeSimth 的 Bin目录下

x64/SQLite.Interop.dll   x86/SQLite.Interop.dll  

System.Data.SQLite.dll,System.Data.SQLite.Linq.dll

修改 CodeSmith.exe.config 和 TemplateEditor.exe.config config文件

添加

<system.data>
    <DbProviderFactories>
      <remove invariant="System.Data.SQLite"/>
      <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
    </DbProviderFactories>
  </system.data>

 

关闭 CodeSimth  重新启动 即可

CodeSimth - .Net Framework Data Provider 可能没有安装

原文:http://www.cnblogs.com/z_lb/p/5485945.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!