mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
rebase cleanup.
This commit is contained in:
parent
6dd56114e3
commit
971053f8a2
@ -1,10 +0,0 @@
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
namespace NzbDrone.Core.Datastore
|
||||
{
|
||||
public static class Migration
|
||||
{
|
||||
}
|
||||
}
|
@ -1,11 +1,8 @@
|
||||
using System;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using ServiceStack.DataAnnotations;
|
||||
|
||||
|
||||
namespace NzbDrone.Core.Indexers
|
||||
{
|
||||
[Alias("IndexerDefinitions")]
|
||||
public class Indexer : ModelBase
|
||||
{
|
||||
public Boolean Enable { get; set; }
|
||||
|
@ -1,11 +1,9 @@
|
||||
using System;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using ServiceStack.DataAnnotations;
|
||||
|
||||
|
||||
namespace NzbDrone.Core.Indexers
|
||||
{
|
||||
[Alias("NewznabDefinitions")]
|
||||
public class NewznabDefinition : ModelBase
|
||||
{
|
||||
public Boolean Enable { get; set; }
|
||||
|
@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using NzbDrone.Core.Datastore;
|
||||
|
||||
namespace NzbDrone.Core.Indexers
|
||||
@ -14,13 +10,14 @@ public interface INewznabRepository : IBasicRepository<NewznabDefinition>
|
||||
|
||||
public class NewznabRepository : BasicRepository<NewznabDefinition>, INewznabRepository
|
||||
{
|
||||
public NewznabRepository(IDatabase database) : base(database)
|
||||
public NewznabRepository(IDatabase database)
|
||||
: base(database)
|
||||
{
|
||||
}
|
||||
|
||||
public IEnumerable<NewznabDefinition> Enabled()
|
||||
{
|
||||
return Queryable().Where(n => n.Enabled);
|
||||
return Queryable().Where(n => n.Enable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,8 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using ServiceStack.DataAnnotations;
|
||||
|
||||
namespace NzbDrone.Core.Jobs
|
||||
{
|
||||
[Alias("JobDefinitions")]
|
||||
public class JobDefinition : ModelBase
|
||||
{
|
||||
public Boolean Enable { get; set; }
|
||||
|
@ -27,7 +27,7 @@ public JobRepository(IDatabase database, IEnumerable<IJob> jobs, Logger logger)
|
||||
|
||||
public JobDefinition GetDefinition(Type type)
|
||||
{
|
||||
return Queryable().Single(c => c.TypeName == type.FullName);
|
||||
return Queryable().Single(c => c.Type == type.FullName);
|
||||
}
|
||||
|
||||
|
||||
|
@ -132,6 +132,7 @@
|
||||
</Reference>
|
||||
<Reference Include="FluentMigrator.Runner">
|
||||
<HintPath>..\packages\FluentMigrator.1.0.6.0\tools\FluentMigrator.Runner.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="FastReflection">
|
||||
<HintPath>..\packages\MarrDataMapper.3.17.4747.34302\lib\FastReflection.dll</HintPath>
|
||||
</Reference>
|
||||
@ -208,7 +209,6 @@
|
||||
<Compile Include="Datastore\Database.cs" />
|
||||
<Compile Include="Datastore\DbFactory.cs" />
|
||||
<Compile Include="Datastore\MigrationHelper.cs" />
|
||||
<Compile Include="Datastore\Migration.cs" />
|
||||
<Compile Include="Datastore\Migrations\Migration20130324.cs" />
|
||||
<Compile Include="Datastore\Migrations\NzbDroneMigration.cs" />
|
||||
<Compile Include="Datastore\MigrationType.cs" />
|
||||
|
@ -1,11 +1,9 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using ServiceStack.DataAnnotations;
|
||||
|
||||
namespace NzbDrone.Core.Qualities
|
||||
{
|
||||
[Alias("QualityProfiles")]
|
||||
public class QualityProfile : ModelBase
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
@ -1,11 +1,9 @@
|
||||
using System.Linq;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using ServiceStack.DataAnnotations;
|
||||
|
||||
|
||||
namespace NzbDrone.Core.Qualities
|
||||
{
|
||||
[Alias("QualitySizes")]
|
||||
public class QualitySize : ModelBase
|
||||
{
|
||||
public int QualityId { get; set; }
|
||||
|
@ -1,10 +1,8 @@
|
||||
using System.Linq;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using ServiceStack.DataAnnotations;
|
||||
|
||||
namespace NzbDrone.Core.ReferenceData
|
||||
{
|
||||
[Alias("SceneMappings")]
|
||||
public class SceneMapping : ModelBase
|
||||
{
|
||||
public string CleanTitle { get; set; }
|
||||
|
@ -1,10 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using NzbDrone.Core.Model;
|
||||
using NzbDrone.Core.Qualities;
|
||||
using ServiceStack.DataAnnotations;
|
||||
|
||||
|
||||
namespace NzbDrone.Core.Tv
|
||||
|
Loading…
Reference in New Issue
Block a user