.netcore 打开SQLite数据库失败:You need to call SQLitePCL.raw.SetProvider(). If you are using a bundle package, this is done by calling SQLitePCL.Batteries.Init().”


.net core打开SQLite数据库时发生错误,错误信息如下:

You need to call SQLitePCL.raw.SetProvider().  If you are using a bundle package, this is done by calling SQLitePCL.Batteries.Init().”

解决方案

检查nuget引用,是不是引用了 Microsoft.Data.Sqlite.Core 替换为  Microsoft.Data.Sqlite 解决

替换后 

 

版权声明:本文为YES开发框架网发布内容,转载请附上原文出处连接
YES开发框架
上一篇:.net core使用Microsoft.Data.Sqlite创建SQLite数据库文件
下一篇:.net HTML解析工具HtmlAgilityPack使用
评论列表

发表评论

评论内容
昵称:
关联文章

.netcore 打开SQLite数据库失败You need to call SQLitePCL.raw.SetProvider(). If you are using a bundle package, this is done by calling SQLitePCL.Batteries.Init().”
Xamarin.Forms 复制本地SQLite数据库
VUE使用sass提示在sass文件中提示Syntax Error : this.getOptions is not a function
Macros $(DevEnvDir), $(SolutionFileName), $(SolutionPath), $(SolutionDir), $(SolutionName), $(SolutionExt) are not defined during publish. Worked fine during build
Linq to SQL语句基础讲解
.NETCore和.NET5 MVC使用 Session
SQLite Database 多线程访问需要注意的问题
.net core使用Microsoft.Data.Sqlite创建SQLite数据库文件
GZDBHelper连接SQLite数据库
.NETCore用Process.Start打开网址出现异常
记一次.Net Core程序启动失败的排查过程
.net Core Swagger报错 the same schemaid is already used for type swagger
C# 数据库连接字符串Microsoft.Data.Sqlite数据库连接
RazorEngine不能使用@Html.Raw引起的连锁反应以及解决办法
.NETCore IIS应用程序池事件监听
SEO刷排名工具参数配置指南
.NETCore-winform 判断是否设计模式
SQLite数据库删除数据后数据库文件大小不变
.Net启动程序报错:It was not possible to find any compatible framework version
.NET Core Winform 打开窗体设计器报错

联系我们
联系电话:15090125178(微信同号)
电子邮箱:garson_zhang@163.com
站长微信二维码
微信二维码