如何在我的应用程序中获取SQLiteDataAdapter库 [英] how can i get the SQLiteDataAdapter library in my app

查看:267
本文介绍了如何在我的应用程序中获取SQLiteDataAdapter库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够在我的应用程序中访问SQLiteDataAdapter,所以我想知道要引用的内容和要添加的库...感谢提前

解决方案





你检查过这个软件包 [ ^ ]?



有一点需要注意的是,你必须将 SQLite.Interop.dll 复制到你的输出文件夹中,否则你的应用程序将无法访问SQLite -DB。


谢谢s_mon但是当我尝试安装system.data.sqlite时我得到了这个例外



< pre lang =css> 已成功 已安装 'System .数据 SQLite 1 0 88 .0'。
已成功 已卸载 '系统数据 SQLite 1 0 88 .0'。
安装 失败 Rolling back ...
Install-Package 可能 < span class =code-leadattribute> install package 'System 数据 SQLite 1 0 88 .0'。 尝试 to install this package into a project
目标 ' NETCore ,版本= v4.5', package 包含 任何 汇编 参考 兼容
框架对于 更多 信息 contact package 作者
line:1 char:1
+ Install-Package System 数据 SQLite
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId NuGetCmdletUnhandledException NuGet PowerShell 命令 InstallPackageCommand





你遇到过这个吗?


I wanna be able to access SQLiteDataAdapter in my app so i want know what to reference and library to add... thank in advance

解决方案

Hi,

have you checked this package[^]?

One thing to mention is, that you have to copy SQLite.Interop.dll into your output-folder, otherwise your application won't be able to access a SQLite-DB.


thanks s_mon but when i try to install the system.data.sqlite i get this exception

"

Successfully installed 'System.Data.SQLite 1.0.88.0'.
Successfully uninstalled 'System.Data.SQLite 1.0.88.0'.
Install failed. Rolling back...
Install-Package : Could not install package 'System.Data.SQLite 1.0.88.0'. You are trying to install this package into a project
that targets '.NETCore,Version=v4.5', but the package does not contain any assembly references that are compatible with that
framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package System.Data.SQLite
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

"

have u encountered this?


这篇关于如何在我的应用程序中获取SQLiteDataAdapter库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆