我正在尝试从我的 MVC 6 应用程序运行 firebird 嵌入式数据库。我正在使用 Fluent Nhibernate。配置如下图所示:
var firebird = new FirebirdConfiguration();
var cs = @"User=SYSDBA;Password=masterkey;Database=SampleDatabase.fdb;DataSource=localhost;
Port = 3050; Dialect = 3; Charset = NONE; Role =; Connection lifetime = 15; Pooling = true;
MinPoolSize = 0; MaxPoolSize = 50; Packet Size = 8192; ServerType = 1; ";
SessionFactory = Fluently.Configure()
.Mappings(m => m.FluentMappings.AddFromAssembly(Assembly.GetExecutingAssembly()))
.Database(firebird.ConnectionString(cs)).BuildConfiguration()
.BuildSessionFactory();
我还安装了 nuget 包FirebirdSql.Data.FirebirdClient
但是我收到错误:
Unable to load DLL 'fbembed': The specified module could not be found.
我正在尝试将此 dll 包含在我的参考中,但随后我收到构建错误,指出无法恢复此参考。
我需要做什么才能让它运行?
PS:由于类似的情况/错误,我也未能使用 SQLite。