예제 #1
0
 private void edit_record(EditTypes editType, string clazz, string opaqueRef, string field, params object[] args)
 {
     Db.Row  row = db.Tables[clazz].Rows[opaqueRef];
     Db.Prop prop;
     if (row.Props.TryGetValue(field, out prop))
     {
         prop.XapiObjectValue = NewValue(editType, prop.XapiObjectValue, args);
     }
     else
     {
         prop             = new Db.Prop(row, field, NewValue(editType, null, args));
         row.Props[field] = prop;
     }
 }
예제 #2
0
파일: DbProxy.cs 프로젝트: robhoes/xenadmin
 private void edit_record(EditTypes editType, string clazz, string opaqueRef, string field, params object[] args)
 {
     Db.Row row = db.Tables[clazz].Rows[opaqueRef];
     Db.Prop prop;
     if (row.Props.TryGetValue(field, out prop))
     {
         prop.XapiObjectValue = NewValue(editType, prop.XapiObjectValue, args);
     }
     else
     {
         prop = new Db.Prop(row, field, NewValue(editType, null, args));
         row.Props[field] = prop;
     }
 }