DBreeze.Storage.RISR.RestoreTableFromTheOtherTable C# (CSharp) Method

RestoreTableFromTheOtherTable() public method

public RestoreTableFromTheOtherTable ( string newTableFullPath ) : void
newTableFullPath string
return void
        public void RestoreTableFromTheOtherTable(string newTableFullPath)
        {
            throw new Exception("RestoreTableFromTheOtherTable currently not available in RISR mode");

            //lock (lock_fs)
            //{
            //    if (_fsData != null)
            //    {
            //        _fsData.Close();
            //        _fsData.Dispose();
            //        _fsData = null;
            //    }

            //    if (_fsRollback != null)
            //    {
            //        _fsRollback.Close();
            //        _fsRollback.Dispose();
            //        _fsRollback = null;
            //    }

            //    if (_fsRollbackHelper != null)
            //    {
            //        _fsRollbackHelper.Close();
            //        _fsRollbackHelper.Dispose();
            //        _fsRollbackHelper = null;
            //    }

            //    _randBuf.Clear();
            //    _rollbackCache.Clear();
            //    usedBufferSize = 0;
            //    eofRollback = 0;
            //    eofData = 0;
            //    _seqBuf.Clear(true);

            //    File.Delete(this._fileName);
            //    File.Delete(this._fileName + ".rol");
            //    File.Delete(this._fileName + ".rhp");

            //    if (File.Exists(newTableFullPath))
            //        File.Move(newTableFullPath, this._fileName);

            //    if(File.Exists(newTableFullPath + ".rol"))
            //        File.Move(newTableFullPath + ".rol", this._fileName + ".rol");

            //    if (File.Exists(newTableFullPath + ".rhp"))
            //        File.Move(newTableFullPath + ".rhp", this._fileName + ".rhp");

            //    InitFiles();

            //}
        }