added repo base

This commit is contained in:
kay.one 2013-02-03 22:27:58 -08:00
commit 34038245eb
2 changed files with 45 additions and 29 deletions

View file

@ -1,26 +1,14 @@
using System.Collections.Generic;
using NzbDrone.Core.RootFolders;
using PetaPoco;
namespace NzbDrone.Core.Repository
{
public interface IRootDir
{
int Id { get; set; }
string Path { get; set; }
[ResultColumn]
ulong FreeSpace { get; set; }
[Ignore]
List<string> UnmappedFolders { get; set; }
}
[TableName("RootDirs")]
[PrimaryKey("Id", autoIncrement = true)]
public class RootDir : IRootDir
public class RootDir : BaseModel
{
public virtual int Id { get; set; }
public string Path { get; set; }
[ResultColumn]