Revision 3c43ec9b trunk/Pithos.Core/FileState.cs

b/trunk/Pithos.Core/FileState.cs
22 22
    public class FileState:ActiveRecordLinqBase<FileState>
23 23
    {
24 24
        private string _filePath;
25
        private IList<FileTag> _tags=new List<FileTag>();
26

  
25 27

  
26 28
        [PrimaryKey]
27 29
        public string FilePath
......
39 41
        [Property]
40 42
        public string Checksum { get; set; }
41 43

  
44
        [HasMany(Cascade=ManyRelationCascadeEnum.AllDeleteOrphan,Lazy=true)]
45
        public IList<FileTag> Tags
46
        {
47
            get { return _tags; }   
48
            set { _tags=value;}
49
        }
50
       
42 51
    }
43 52

  
44
  
53
    [ActiveRecord]
54
    public class FileTag : ActiveRecordLinqBase<FileTag>
55
    {
56
        [PrimaryKey]
57
        public string FilePath { get; set; }
58

  
59
        [Property]
60
        public string Value { get; set; }
61

  
62
        [BelongsTo("FilePath")]
63
        public FileState FileState { get; set; }
64

  
65
    }
66

  
67

  
45 68
}

Also available in: Unified diff