示例#1
0
        public bool Delete(int key)
        {
            var dataBlockNumber = DbIndexFileUtility.FindDataBlockNumber(key, _dbConnection);

            return(DbDataFileUtility.Delete(key, dataBlockNumber, _dbConnection));
        }
示例#2
0
        public void Write(KeyValuePair <int, object> record)
        {
            var dataBlockNumber = DbIndexFileUtility.FindDataBlockNumber(record.Key, _dbConnection);

            DbDataFileUtility.Write(record, dataBlockNumber, _dbConnection);
        }
示例#3
0
        public KeyValuePair <int, object>?Read(int key)
        {
            var dataBlockNumber = DbIndexFileUtility.FindDataBlockNumber(key, _dbConnection);

            return(DbDataFileUtility.FindRecord(key, dataBlockNumber, _dbConnection));
        }
示例#4
0
        public void Write(int key, object value)
        {
            var dataBlockNumber = DbIndexFileUtility.FindDataBlockNumber(key, _dbConnection);

            DbDataFileUtility.Write(new KeyValuePair <int, object>(key, value), dataBlockNumber, _dbConnection);
        }