关于安装了sqlite对于vs的组件,重启vs后,在外面可以连接sqlite数据库,但是在建立实体模型时没有sqlite数据源的问题
出自:http://bbs.csdn.net/topics/390917337
兄弟,刚刚在stackoverflow上找到了解决方法了
http://stackoverflow.com/questions/21823719/visual-studio-2013-say-me-entity-framework-that-the-provider-of-sqlite-is-not-fo
我自己的问题已经解决了,就是把要用SQLite的这个项目在添加了引用后,先编译生成一下,再添加EDMX。你试试!
2018-03-28-------------------------------------------------------------------------------------------------
用Nuget包安装新版本的sqlite.dll后,连接器需要保持相同版本
如我当前的sqlite.dll的版本是1.0.108.0
那么你连接器的版本也应该是sqlite-netFx46-setup-bundle-x86-2015-1.0.108.0.exe
2018-3-29
发现跟你用nuget引用的dll也有关
需要用.core
2018-04-24
再记一次成功刷出数据源的经历
打开项目,nuget获取sqlite.ef6,dll的版本是1.0.108.0
关闭vs,安装sqlite-netFx46-setup-bundle-x86-2015-1.0.108.0.exe
打开项目,编译,刷不出来数据源
nuget sqlite.core
编译,成功刷出数据源
2018-04-24
https://blog.csdn.net/kaluluosi111/article/details/50323713
报错关于:Unable to determine the provider name for provider factory of type 'System.Data.SQLite.SQLiteFactory'. Make sure that the ADO.NET provider is installed or registered in the application config.
在配置文件增加下面两项
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
<providers>
<provider invariantName='System.Data.SQLite' type='System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6'/>
</providers>
</entityFramework>
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SQLite"/>
<add name='SQLiteData Provider' invariant='System.Data.SQLite' description='.Net Framework DataProvider for SQLite' type='System.Data.SQLite.SQLiteFactory,System.Data.SQLite'/>
</DbProviderFactories>
</system.data>
最新文章
- Asp.net MVC5 路由Html后缀的问题
- Oracle 11gR2 安装教学
- 【android】android下防止anr程序无响应
- Allegro PCB -内层分割,比如电源层需要分割几种电源
- zookeeper伪分布式集群环境搭建
- Angular结构型指令,模块和样式
- idea在本地调试,spark创建hiveContext的时候报错
- Linux 的系统目录介绍
- 使用vmware提示无法打开内核设备 \\.\Global\vmx86: 系统找不到指定的文件
- Cookie快速入门实践
- nova scheduler 介绍
- Django商城项目笔记No.2项目准备工作
- mybatis 传递参数的两种方式与模糊匹配 很重要
- ios 获得通讯录中联系人的所有属性 亲测,可行 兼容io6 和 ios 7
- Mysql闭包表之关于国家区域的一个实践
- java语言复制数组的四种方法
- 【Android】12.4 利用Intent读取图库中的图片
- Lucene原理之概念
- django数据库迁移-15
- 【动态规划/多重背包问题】POJ1014-Dividing