minor cleanup

This commit is contained in:
Keivan Beigi 2013-04-22 17:44:47 -07:00
parent 85fd0e1c22
commit 9efee65966
8 changed files with 25 additions and 9 deletions

View File

@ -2,7 +2,7 @@
using Marr.Data.Converters;
using Marr.Data.Mapping;
namespace NzbDrone.Core.Datastore
namespace NzbDrone.Core.Datastore.Converters
{
public class EnumIntConverter : IConverter
{

View File

@ -0,0 +1,8 @@
namespace NzbDrone.Core.Datastore
{
public interface IReadModels<T> where T : ModelBase
{
T All();
T Get(int id);
}
}

View File

@ -0,0 +1,9 @@
namespace NzbDrone.Core.Datastore
{
public interface IWriteModels<T> where T : ModelBase
{
T Add(T model);
T Update(T model);
void Delete(int id);
}
}

View File

@ -1,7 +1,5 @@
using NLog;
using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Core.Model;
using NzbDrone.Core.Parser;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Tv;

View File

@ -192,8 +192,10 @@
<Compile Include="Datastore\Converters\EmbeddedDocumentConverter.cs" />
<Compile Include="Datastore\Database.cs" />
<Compile Include="Datastore\DbFactory.cs" />
<Compile Include="Datastore\EnumIntConverter.cs" />
<Compile Include="Datastore\Converters\EnumIntConverter.cs" />
<Compile Include="Datastore\IEmbeddedDocument.cs" />
<Compile Include="Datastore\IReadModels.cs" />
<Compile Include="Datastore\IWriteModels.cs" />
<Compile Include="Datastore\LazyList.cs" />
<Compile Include="Datastore\MappingExtensions.cs" />
<Compile Include="Datastore\Migration\Framework\MigrationController.cs" />

View File

@ -22,8 +22,6 @@ namespace NzbDrone.Core.Tv
public Nullable<Int32> AbsoluteEpisodeNumber { get; set; }
public int SceneSeasonNumber { get; set; }
public int SceneEpisodeNumber { get; set; }
//Todo: This should be UTC
public DateTime? GrabDate { get; set; }
public bool HasFile

View File

@ -11,6 +11,6 @@ define(['app', 'Series/SeasonModel'], function () {
events: {
},
}
});
});

View File

@ -1,3 +1,4 @@
"use strict";
define(['app', 'Quality/QualityProfileCollection', 'Series/Details/SeasonCompositeView', 'Series/SeasonCollection'], function () {
NzbDrone.Series.Details.SeriesDetailsView = Backbone.Marionette.CompositeView.extend({