1 // -----------------------------------------------------------------------
2 // <copyright file="FileState.cs" company="Microsoft">
3 // TODO: Update copyright text.
5 // -----------------------------------------------------------------------
7 using Castle.ActiveRecord;
8 using Castle.ActiveRecord.Framework;
9 using Pithos.Interfaces;
14 using System.Collections.Generic;
19 /// TODO: Update summary.
22 public class FileState:ActiveRecordLinqBase<FileState>
24 private string _filePath;
25 private IList<FileTag> _tags=new List<FileTag>();
29 public string FilePath
31 get { return _filePath; }
32 set { _filePath = value.ToLower(); }
36 public FileOverlayStatus OverlayStatus { get; set; }
39 public FileStatus FileStatus { get; set; }
42 public string Checksum { get; set; }
44 [HasMany(Cascade=ManyRelationCascadeEnum.AllDeleteOrphan,Lazy=true)]
45 public IList<FileTag> Tags
54 public class FileTag : ActiveRecordLinqBase<FileTag>
57 public string FilePath { get; set; }
60 public string Value { get; set; }
62 [BelongsTo("FilePath")]
63 public FileState FileState { get; set; }