c# - SQLite 的 .NET Framework 数据提供程序发生意外错误

标签 c# entity-framework sqlite

我想将 SQLite 与 Entity Framework 一起使用。我安装了 SQLite 并在我的 app.config 文件中做了一些特定的更改。我可以在数据提供者列表中看到 SQLite 选项。

当我选择时,它会询问一个连接字符串。在我编写连接字符串后得到错误提示:

An unexpected error occured in .NET framework data provider for SQLite

问候,穆罕默德

最佳答案

SQLite 1.0.9xx 和 EF 6.1.xx 的设置非常挑剔。请查看我的回答是否适合您(一定要观看视频):Database first create entity framework 6.1.1 model using system.data.sqlite 1.0.93

关于c# - SQLite 的 .NET Framework 数据提供程序发生意外错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25340453/

相关文章:

c# - NavigationManager.NavigateTo in razor pages c# 有时不起作用

c# - HttpClient post 在 c# 中返回错误的请求,在 postman 中工作

c# - 寻找设计模式来自动执行重复任务,例如登录/注销

c# - 外键约束 : false match with empty string and whitespace

c++ - 用于定位对象的序列化和数据库技术

c# - Entity Framework 与 IBM DB2

c# - 在 EFCore 中的单个 LINQ 查询中获得 2 个前 5 个

c# - Entity Framework Throwing Cannot Insert Explicit Value for Identity Column In Table ... 当 IDENTITY_INSERT 设置为 OFF 错误

android - Android Nougat 中的 SQLite 查询不向后兼容

ios - 在 IOS 7 中使用 Core.Data 的好教程