예제 #1
0
 public Entity(string uid, Category cat, bool existing)
 {
     _isExisting = (uid.Length > 0) && existing;
     _uid = uid;
     _cat = cat;
     _attrProps = new List<AttrProperty>();
     foreach (var id in _cat.AttrIDs)
     {
         AttrDesc desc;
         if (!AttrDesc.DescList.TryGetValue(id.Name, out desc))
             desc = new AttrDesc();
         _attrProps.Add(new AttrProperty(id, desc));
         if (id.Name == "GUID") _guidProp = _attrProps.Last();
        }
 }
 public AttrProperty(AttrID id, AttrDesc desc, object value)
 {
     _attrID = id;
     _desc = desc;
     _valueObj = value;
     _modified = false;
 }
 public AttrProperty(AttrID id, AttrDesc desc)
 {
     _attrID = id;
     _desc = desc;
     _modified = false;
 }