You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Radarr/src/NzbDrone.Core/Datastore/Database.cs

25 lines
505 B

using System;
using Marr.Data;
namespace NzbDrone.Core.Datastore
{
public interface IDatabase
{
IDataMapper GetDataMapper();
}
public class Database : IDatabase
{
11 years ago
private readonly Func<IDataMapper> _dataMapperFactory;
11 years ago
public Database(Func<IDataMapper> dataMapperFactory)
{
11 years ago
_dataMapperFactory = dataMapperFactory;
}
public IDataMapper GetDataMapper()
11 years ago
{
return _dataMapperFactory();
11 years ago
}
}
}