SQLite的.NET框架数据提供程序中发生意外错误(An unexpected error occurred in .NET framework data provider for SQLite)

编程入门 行业动态 更新时间:2024-10-28 04:19:06
SQLite的.NET框架数据提供程序中发生意外错误(An unexpected error occurred in .NET framework data provider for SQLite)

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

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

SQLite的.NET框架数据提供程序中发生意外错误

此致,穆罕默德

I want to use SQLite with Entity Framework. I installed the SQLite and did some specific changes in my app.config file. I can see the SQLite option in the data provider list.

When I select, it asks a connection string. After I write the connection string get the error saying :

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

Regards, Mehmet

最满意答案

设置SQLite 1.0.9xx和EF 6.1.xx非常挑剔。 请查看我的答案是否适合您(请务必观看视频): 数据库首先使用system.data.sqlite 1.0.93创建实体框架6.1.1模型

SQLite 1.0.9xx and EF 6.1.xx are very finicky to set up. Please see if my answer here works for you (be sure to watch the video) : Database first create entity framework 6.1.1 model using system.data.sqlite 1.0.93

更多推荐

本文发布于:2023-07-26 06:55:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1272218.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:发生意外   框架   错误   程序   数据

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!