replaced compile time with runtime mono check.

This commit is contained in:
kay.one 2013-02-16 14:24:58 -08:00
commit 2873fc9f6d
7 changed files with 35 additions and 30 deletions

View file

@ -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();
}
}