mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
using compiled delegate instead of reflection in Marr
This commit is contained in:
parent
9db5b7963e
commit
ace98831c7
16 changed files with 170 additions and 388 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue