我最近正在研究 Firebird Embedded 作为可以在我的项目中替代 SQLite 的产品。问题是,我希望能够在 Windows 和 Linux 上使用相同的应用程序编译,但不幸的是,使用 SQLite 这是不可能的。
尽管如此,我还是无法让 Firebird 在 Linux 上运行 Mono(还没有尝试过 Windows)。
我做过的事情:
Firebird ADO.NET Provider
从 NuGet安装。- 为 Windows 库下载32 位嵌入式客户端并解压缩到我的 bin 目录:
fbembed.dll
,firebird.cfg
,firebird.msg
,ib_util.dll
,icudt30.dll
,icuin30.dll
,icuuc30.dll
. 使用以下命令创建了连接字符串:
string fbConnectionString = String.Format ("ServerType=1;User=SYSDBA;" + Password=masterkey;Dialect=3;Database={0};Charset=UTF8", _dbFile); FbConnection.CreateDatabase (fbConnectionString);
不过,我得到了错误,
fbembed.dll
在路径中找不到。
我该怎么办?