我需要使用 SQLite with 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提供程序),可从获取sourceforge/projects/sqlite-dotnet2/
System.Data.SQLite.dll and System.Data.SQLite.Linq.dll, (ADO.NET 2.0 provider) available from sourceforge/projects/sqlite-dotnet2/
和
sqlite3.dll 以二进制下载的形式提供 http://www.sqlite。 org / download.html
sqlite3.dll available as binary download www.sqlite/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 是包含数据库引擎本身的非托管代码,它作为资源嵌入在托管 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/
You could download this assembly from here: sqlite.phxsoftware/
更多推荐
SQLite:sqlite3.dll和System.Data.SQLite.dll?
发布评论