.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开发框架网发布内容,转载请附上原文出处连接
post YES开发框架