added conditional compile for mono

This commit is contained in:
kay.one
2013-02-16 11:23:31 -08:00
parent 00e2f225f8
commit 3ab04fd213
19 changed files with 40 additions and 57 deletions
@@ -1,5 +1,5 @@
using System;
using System.Data.SqlServerCe;
using System.Data.SqlClient;
using System.Linq;
using Migrator.Framework;
using NzbDrone.Common;
@@ -35,8 +35,7 @@ namespace NzbDrone.Core.Datastore.Migrations
protected EloqueraDb GetObjectDb()
{
var sqlCeConnection = new SqlCeConnection(Database.ConnectionString);
var sqlCeConnection = new SqlConnection(Database.ConnectionString);
var eqPath = sqlCeConnection.Database.Replace(".sdf", ".eq");
return new EloqueraDbFactory(new EnvironmentProvider()).Create(eqPath);