Changed the retry function in PithosClient to use the TPL
[pithos-ms-client] / trunk / Pithos.Core / FileState.cs
index 58be1ec..f751f81 100644 (file)
@@ -22,6 +22,8 @@ namespace Pithos.Core
     public class FileState:ActiveRecordLinqBase<FileState>
     {
         private string _filePath;
+        private IList<FileTag> _tags=new List<FileTag>();
+
 
         [PrimaryKey]
         public string FilePath
@@ -39,7 +41,28 @@ namespace Pithos.Core
         [Property]
         public string Checksum { get; set; }
 
+        [HasMany(Cascade=ManyRelationCascadeEnum.AllDeleteOrphan,Lazy=true)]
+        public IList<FileTag> Tags
+        {
+            get { return _tags; }   
+            set { _tags=value;}
+        }
+       
     }
 
-  
+    [ActiveRecord]
+    public class FileTag : ActiveRecordLinqBase<FileTag>
+    {
+        [PrimaryKey]
+        public string FilePath { get; set; }
+
+        [Property]
+        public string Value { get; set; }
+
+        [BelongsTo("FilePath")]
+        public FileState FileState { get; set; }
+
+    }
+
+
 }