mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Moved source code under src folder - massive change
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using Marr.Data;
|
||||
|
||||
namespace NzbDrone.Core.Datastore
|
||||
{
|
||||
public interface IDatabase
|
||||
{
|
||||
IDataMapper GetDataMapper();
|
||||
}
|
||||
|
||||
public class Database : IDatabase
|
||||
{
|
||||
private readonly Func<IDataMapper> _dataMapperFactory;
|
||||
|
||||
public Database(Func<IDataMapper> dataMapperFactory)
|
||||
{
|
||||
_dataMapperFactory = dataMapperFactory;
|
||||
}
|
||||
|
||||
public IDataMapper GetDataMapper()
|
||||
{
|
||||
return _dataMapperFactory();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user