Lidarr/src/NzbDrone.Core/RootFolders/RootFolderRepository.cs

27 lines
679 B
C#
Raw Normal View History

2013-11-13 20:08:37 +00:00
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Messaging.Events;
namespace NzbDrone.Core.RootFolders
{
public interface IRootFolderRepository : IBasicRepository<RootFolder>
{
}
public class RootFolderRepository : BasicRepository<RootFolder>, IRootFolderRepository
{
public RootFolderRepository(IMainDatabase database, IEventAggregator eventAggregator)
2013-11-13 20:08:37 +00:00
: base(database, eventAggregator)
{
}
2016-12-09 06:54:15 +00:00
protected override bool PublishModelEvents => true;
2020-02-09 19:15:43 +00:00
public new void Delete(int id)
{
var model = Get(id);
base.Delete(id);
ModelDeleted(model);
}
2013-11-13 20:08:37 +00:00
}
}