Example #1
0
        public override void WriteHash(long ID, Dictionary<string, object> data)
        {
            this.DeleteHash(ID);

            GenericTable gt = new GenericTable(squtil, dbTable, mArchiveControl.cfg.IDColumn);
            foreach (KeyValuePair<string,object> kvp in data) {
                if (kvp.Key == mArchiveControl.cfg.IDColumn)
                    continue;

                if (kvp.Value != DBNull.Value)
                    gt[kvp.Key] = kvp.Value;
            }

            gt.ID = ID;
            gt.CreateRecord();
        }