rebase cleanup.

pull/4/head
kay.one 12 years ago
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 System;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
using ServiceStack.DataAnnotations;
namespace NzbDrone.Core.Indexers namespace NzbDrone.Core.Indexers
{ {
[Alias("IndexerDefinitions")]
public class Indexer : ModelBase public class Indexer : ModelBase
{ {
public Boolean Enable { get; set; } public Boolean Enable { get; set; }

@ -1,11 +1,9 @@
using System; using System;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
using ServiceStack.DataAnnotations;
namespace NzbDrone.Core.Indexers namespace NzbDrone.Core.Indexers
{ {
[Alias("NewznabDefinitions")]
public class NewznabDefinition : ModelBase public class NewznabDefinition : ModelBase
{ {
public Boolean Enable { get; set; } public Boolean Enable { get; set; }

@ -1,8 +1,4 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Indexers namespace NzbDrone.Core.Indexers
@ -14,13 +10,14 @@ namespace NzbDrone.Core.Indexers
public class NewznabRepository : BasicRepository<NewznabDefinition>, INewznabRepository public class NewznabRepository : BasicRepository<NewznabDefinition>, INewznabRepository
{ {
public NewznabRepository(IDatabase database) : base(database) public NewznabRepository(IDatabase database)
: base(database)
{ {
} }
public IEnumerable<NewznabDefinition> Enabled() public IEnumerable<NewznabDefinition> Enabled()
{ {
return Queryable().Where(n => n.Enabled); return Queryable().Where(n => n.Enable);
} }
} }
} }

@ -1,11 +1,8 @@
using System; using System;
using System.Linq;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
using ServiceStack.DataAnnotations;
namespace NzbDrone.Core.Jobs namespace NzbDrone.Core.Jobs
{ {
[Alias("JobDefinitions")]
public class JobDefinition : ModelBase public class JobDefinition : ModelBase
{ {
public Boolean Enable { get; set; } public Boolean Enable { get; set; }

@ -27,7 +27,7 @@ namespace NzbDrone.Core.Jobs
public JobDefinition GetDefinition(Type type) 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>
<Reference Include="FluentMigrator.Runner"> <Reference Include="FluentMigrator.Runner">
<HintPath>..\packages\FluentMigrator.1.0.6.0\tools\FluentMigrator.Runner.dll</HintPath> <HintPath>..\packages\FluentMigrator.1.0.6.0\tools\FluentMigrator.Runner.dll</HintPath>
</Reference>
<Reference Include="FastReflection"> <Reference Include="FastReflection">
<HintPath>..\packages\MarrDataMapper.3.17.4747.34302\lib\FastReflection.dll</HintPath> <HintPath>..\packages\MarrDataMapper.3.17.4747.34302\lib\FastReflection.dll</HintPath>
</Reference> </Reference>
@ -208,7 +209,6 @@
<Compile Include="Datastore\Database.cs" /> <Compile Include="Datastore\Database.cs" />
<Compile Include="Datastore\DbFactory.cs" /> <Compile Include="Datastore\DbFactory.cs" />
<Compile Include="Datastore\MigrationHelper.cs" /> <Compile Include="Datastore\MigrationHelper.cs" />
<Compile Include="Datastore\Migration.cs" />
<Compile Include="Datastore\Migrations\Migration20130324.cs" /> <Compile Include="Datastore\Migrations\Migration20130324.cs" />
<Compile Include="Datastore\Migrations\NzbDroneMigration.cs" /> <Compile Include="Datastore\Migrations\NzbDroneMigration.cs" />
<Compile Include="Datastore\MigrationType.cs" /> <Compile Include="Datastore\MigrationType.cs" />

@ -1,11 +1,9 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
using ServiceStack.DataAnnotations;
namespace NzbDrone.Core.Qualities namespace NzbDrone.Core.Qualities
{ {
[Alias("QualityProfiles")]
public class QualityProfile : ModelBase public class QualityProfile : ModelBase
{ {
public string Name { get; set; } public string Name { get; set; }

@ -1,11 +1,9 @@
using System.Linq; using System.Linq;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
using ServiceStack.DataAnnotations;
namespace NzbDrone.Core.Qualities namespace NzbDrone.Core.Qualities
{ {
[Alias("QualitySizes")]
public class QualitySize : ModelBase public class QualitySize : ModelBase
{ {
public int QualityId { get; set; } public int QualityId { get; set; }

@ -1,10 +1,8 @@
using System.Linq; using System.Linq;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
using ServiceStack.DataAnnotations;
namespace NzbDrone.Core.ReferenceData namespace NzbDrone.Core.ReferenceData
{ {
[Alias("SceneMappings")]
public class SceneMapping : ModelBase public class SceneMapping : ModelBase
{ {
public string CleanTitle { get; set; } public string CleanTitle { get; set; }

@ -1,10 +1,8 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System; using System;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
using NzbDrone.Core.Model; using NzbDrone.Core.Model;
using NzbDrone.Core.Qualities; using NzbDrone.Core.Qualities;
using ServiceStack.DataAnnotations;
namespace NzbDrone.Core.Tv namespace NzbDrone.Core.Tv

Loading…
Cancel
Save