Autofac registrations are not singleton anymore.

This commit is contained in:
kay.one 2013-03-30 15:14:33 -07:00
commit f2886d89de
5 changed files with 34 additions and 23 deletions

View file

@ -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;
}