SQLite:sqlite3.dll 与 System.Data.SQLite.dll? [英] SQLite: sqlite3.dll vs System.Data.SQLite.dll?

查看:31
本文介绍了SQLite:sqlite3.dll 与 System.Data.SQLite.dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用SQLite 和NHibernate(和FluentNHibernate)需要什么?

有:

System.Data.SQLite.dllSystem.Data.SQLite.Linq.dll,(ADO.NET 2.0 提供程序)可从 http://sourceforge.net/projects/sqlite-dotnet2/

System.Data.SQLite.dll and System.Data.SQLite.Linq.dll, (ADO.NET 2.0 provider) available from http://sourceforge.net/projects/sqlite-dotnet2/

sqlite3.dll 可作为二进制下载http://www.sqlite.org/download.html

有什么区别?两者都需要,还是需要哪一个?

What is the difference? Do I need both, or which one?

第一个选项安装到 C:/...Program Files.我可以将它从那里复制到我的自定义 SharedLibs 文件夹,还是会引用最初安装的文件?

The first option installs to C:/...Program Files. Can I copy it from there to my custom SharedLibs folder, or will something reference the files originally installed?

推荐答案

你只需要System.Data.SQLite.dll.您可以在 SharedLibs 文件夹中引用此程序集,它应该足够了.sqlite3.dll 是包含数据库引擎本身的非托管代码,它作为资源嵌入在托管的 System.Data.SQLite 程序集中.同样由于这种非托管代码,System.Data.SQLite 程序集实际上有两种版本:一种用于 x86,一种用于 x64,因此请确保为您的系统引用正确的版本.

You only need System.Data.SQLite.dll. You could reference this assembly in your SharedLibs folder and it should be enough. The sqlite3.dll is unmanaged code containing the databae engine itself and it is embedded as resource inside the managed System.Data.SQLite assembly. Also because of this unmanaged code there are actually two versions of the System.Data.SQLite assembly: one for x86 and one for x64, so make sure you reference the correct one for your system.

您可以从这里下载此程序集:http://sqlite.phxsoftware.com/

You could download this assembly from here: http://sqlite.phxsoftware.com/

这篇关于SQLite:sqlite3.dll 与 System.Data.SQLite.dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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