mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
replaced compile time with runtime mono check.
This commit is contained in:
parent
88b06e8747
commit
2873fc9f6d
7 changed files with 35 additions and 30 deletions
|
@ -6,13 +6,13 @@ namespace NzbDrone.SqlCe
|
|||
{
|
||||
public class SqlCeProxy
|
||||
{
|
||||
public void EnsureDatabase(string constr)
|
||||
public void EnsureDatabase(string connectionString)
|
||||
{
|
||||
var connection = new SqlCeConnection(constr);
|
||||
var connection = new SqlCeConnection(connectionString);
|
||||
|
||||
if (!File.Exists(connection.Database))
|
||||
{
|
||||
var engine = new SqlCeEngine(constr);
|
||||
var engine = new SqlCeEngine(connectionString);
|
||||
engine.CreateDatabase();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue