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.
Lidarr/NzbDrone.Core/Datastore/Database.cs

28 lines
551 B

using System;
using Marr.Data;
namespace NzbDrone.Core.Datastore
{
public interface IDatabase
{
IDataMapper DataMapper { get; }
}
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;
}
11 years ago
public IDataMapper DataMapper
{
get
{
return _dataMapperFactory();
}
}
}
}