mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
cleanup
This commit is contained in:
parent
3592cf530d
commit
57e78e31fe
6 changed files with 71 additions and 35 deletions
|
@ -10,12 +10,19 @@ namespace NzbDrone.Core.Datastore
|
|||
|
||||
public class Database : IDatabase
|
||||
{
|
||||
private readonly Func<IDataMapper> _dataMapperFactory;
|
||||
|
||||
public Database(IDataMapper dataMapper)
|
||||
public Database(Func<IDataMapper> dataMapperFactory)
|
||||
{
|
||||
DataMapper = dataMapper;
|
||||
_dataMapperFactory = dataMapperFactory;
|
||||
}
|
||||
|
||||
public IDataMapper DataMapper { get; private set; }
|
||||
public IDataMapper DataMapper
|
||||
{
|
||||
get
|
||||
{
|
||||
return _dataMapperFactory();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue