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

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

问题描述

我需要做什么用的的SQLite与NHibernate (和 FluentNHibernate )?

What do I need to use SQLite with NHibernate (and FluentNHibernate) ?

有:

System.Data.SQLite.dll System.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:/ ...程序文件。我可以从那里复制到我的自定义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 是不受管理的code含有databae引擎本身,它是嵌入的资源内部的管理 System.Data.SQLite 组装。这种非托管code也因为实际上有两个版本的 System.Data.SQLite 组件:一个是86,一个是64位,所以一定要引用正确的为您的系统。

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 VS System.Data.SQLite.dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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