mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Autofac registrations are not singleton anymore.
This commit is contained in:
parent
3cdff3bb71
commit
f2886d89de
5 changed files with 34 additions and 23 deletions
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using System.Data.SQLite;
|
||||
using Marr.Data;
|
||||
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||
|
@ -16,9 +15,13 @@ namespace NzbDrone.Core.Datastore
|
|||
{
|
||||
private readonly IMigrationController _migrationController;
|
||||
|
||||
public DbFactory(IMigrationController migrationController)
|
||||
static DbFactory()
|
||||
{
|
||||
TableMapping.Map();
|
||||
}
|
||||
|
||||
public DbFactory(IMigrationController migrationController)
|
||||
{
|
||||
_migrationController = migrationController;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue