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/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
{
12 years ago
private readonly Func<IDataMapper> _dataMapperFactory;
12 years ago
public Database(Func<IDataMapper> dataMapperFactory)
{
12 years ago
_dataMapperFactory = dataMapperFactory;
}
public IDataMapper GetDataMapper()
12 years ago
{
return _dataMapperFactory();
12 years ago
}
}
}