using compiled delegate instead of reflection in Marr

This commit is contained in:
kay.one 2013-06-02 20:15:56 -07:00
commit ace98831c7
16 changed files with 170 additions and 388 deletions

View file

@ -18,6 +18,7 @@ namespace NzbDrone.Core.Datastore
static DbFactory()
{
MapRepository.Instance.ReflectionStrategy = new SimpleReflectionStrategy();
TableMapping.Map();
}
@ -32,9 +33,6 @@ namespace NzbDrone.Core.Datastore
_migrationController.MigrateToLatest(connectionString, migrationType);
MapRepository.Instance.ReflectionStrategy = new DelegateReflectionStrategy();
return new Database(() =>
{
var dataMapper = new DataMapper(SQLiteFactory.Instance, connectionString)