From 89e94bae01c68b03ad493f72af8d27b042c58db7 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Mon, 1 Apr 2013 16:55:09 -0700 Subject: [PATCH] switched reflection strategy for marr to SimpleReflectionStrategy, should be more mono friendly. --- NzbDrone.Core/Datastore/DbFactory.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NzbDrone.Core/Datastore/DbFactory.cs b/NzbDrone.Core/Datastore/DbFactory.cs index aeff131a1..f36e3c7ab 100644 --- a/NzbDrone.Core/Datastore/DbFactory.cs +++ b/NzbDrone.Core/Datastore/DbFactory.cs @@ -1,6 +1,7 @@ using System; using System.Data.SQLite; using Marr.Data; +using Marr.Data.Reflection; using NzbDrone.Core.Datastore.Migration.Framework; @@ -34,6 +35,9 @@ public IDatabase Create(string dbPath, MigrationType migrationType = MigrationTy { SqlMode = SqlModes.Text, }; + + MapRepository.Instance.ReflectionStrategy = new SimpleReflectionStrategy(); + return new Database(dataMapper); }