|
|
|
@ -8,6 +8,7 @@ namespace NzbDrone.Core.ThingiProvider.Status
|
|
|
|
|
where TModel : ProviderStatusBase, new()
|
|
|
|
|
{
|
|
|
|
|
TModel FindByProviderId(int providerId);
|
|
|
|
|
void DeleteByProviderId(int providerId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ProviderStatusRepository<TModel> : BasicRepository<TModel>, IProviderStatusRepository<TModel>
|
|
|
|
@ -22,5 +23,10 @@ namespace NzbDrone.Core.ThingiProvider.Status
|
|
|
|
|
{
|
|
|
|
|
return Query(c => c.ProviderId == providerId).SingleOrDefault();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void DeleteByProviderId(int providerId)
|
|
|
|
|
{
|
|
|
|
|
Delete(c => c.ProviderId == providerId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|