mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-01 06:18:16 +00:00
elq dll path setting for mono.
This commit is contained in:
@@ -22,7 +22,13 @@ namespace NzbDrone.Core.Datastore
|
||||
|
||||
public EloqueraDb CreateMemoryDb()
|
||||
{
|
||||
if (EnvironmentProvider.IsMono)
|
||||
{
|
||||
return InternalCreate("server=(local);password=;options=inmemory", Guid.NewGuid().ToString());
|
||||
|
||||
}
|
||||
return InternalCreate("server=(local);password=;options=inmemory;uselocalpath=" + dllPath, Guid.NewGuid().ToString());
|
||||
|
||||
}
|
||||
|
||||
public EloqueraDb Create(string dbPath = null)
|
||||
@@ -34,7 +40,15 @@ namespace NzbDrone.Core.Datastore
|
||||
|
||||
var file = new FileInfo(dbPath);
|
||||
|
||||
return InternalCreate(string.Format("server=(local);password=;usedatapath={0};uselocalpath={1}", file.Directory.FullName, dllPath), file.Name);
|
||||
if (EnvironmentProvider.IsMono)
|
||||
{
|
||||
return InternalCreate(string.Format("server=(local);password=;usedatapath={0}", file.Directory.FullName), file.Name);
|
||||
}
|
||||
else
|
||||
{
|
||||
return InternalCreate(string.Format("server=(local);password=;usedatapath={0};uselocalpath={1}", file.Directory.FullName, dllPath), file.Name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private EloqueraDb InternalCreate(string connectionString, string databaseName)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user