virtual protected IDBObject _onInsertData(List <KeyValuePair <string, object> > pars, object key, object Data) { if (!_memDB.setHashs(key.ToString(), pars, _desc)) { Debug.logger.log(LogType.LOG_ERR, "AEDBMemTable name[" + this.desc.name + "] insert data keyName[" + _desc.keyName + "] keyVal[" + key + "] sethashs failed!"); return(null); } // create AEDBObject AEDBObject obj = new AEDBObject(this, _memDB, key.ToString(), Data, true); return(obj); }
virtual public bool _onFlushData(bool persist, List <KeyValuePair <string, object> > changedObjects) { bool ret = true; if (!_memDB.setHashs(_id, changedObjects, _table.desc)) { return(false); } // update last save datas foreach (var itm in changedObjects) { _lastSaveDatas[itm.Key] = itm.Value; } return(ret); }