From 02689bece49a0b23c78f0829cd0f8a58482dd998 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Mon, 13 Aug 2012 07:39:42 -0400 Subject: [PATCH] Moved some additional fields down to BaseEntity. --- MediaBrowser.Model/Entities/BaseEntity.cs | 12 +++++++++--- MediaBrowser.Model/Entities/BaseItem.cs | 9 --------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/MediaBrowser.Model/Entities/BaseEntity.cs b/MediaBrowser.Model/Entities/BaseEntity.cs index 3d1f6952b1..d8f557a31a 100644 --- a/MediaBrowser.Model/Entities/BaseEntity.cs +++ b/MediaBrowser.Model/Entities/BaseEntity.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; namespace MediaBrowser.Model.Entities { @@ -15,5 +12,14 @@ namespace MediaBrowser.Model.Entities public Guid Id { get; set; } public string PrimaryImagePath { get; set; } + + public DateTime DateCreated { get; set; } + + public DateTime DateModified { get; set; } + + public override string ToString() + { + return Name; + } } } diff --git a/MediaBrowser.Model/Entities/BaseItem.cs b/MediaBrowser.Model/Entities/BaseItem.cs index ac8381287d..c6de496bdd 100644 --- a/MediaBrowser.Model/Entities/BaseItem.cs +++ b/MediaBrowser.Model/Entities/BaseItem.cs @@ -8,10 +8,6 @@ namespace MediaBrowser.Model.Entities { public string SortName { get; set; } - public DateTime DateCreated { get; set; } - - public DateTime DateModified { get; set; } - /// /// When the item first debuted. For movies this could be premiere date, episodes would be first aired /// @@ -60,10 +56,5 @@ namespace MediaBrowser.Model.Entities public IEnumerable