public OAttribute[] LoadAttributes(DataTable table)
 {
     if (table != null) {
         OAttribute[] res = new OAttribute[table.Rows.Count];
         for (int i=0; i<res.Length; i++) {
             DataRow dr = table.Rows [i];
             res[i] = new OAttribute() { Attribute = (ObjectAttribute)dr["AttributeID"], AttributeType = (AttributeType)dr["AttributeType"], Value = dr["Value"] };
         }
         return res;
     } else
         return new OAttribute[0];
 }
Exemple #2
0
 public void Load(OAttribute[] attributes)
 {
     this._attrs = attributes;
 }
Exemple #3
0
 public void AddAttribute(OAttribute oa)
 {
     //this._ah.Add (Tuple.Create(oa.AttributeID, oa.AttributeType), oa);
 }