public void Open() { if (!Exists()) { throw new IOException("Table composite does not exist"); } // Check the file Lock if (!IsReadOnly) { // Obtain the Lock (generate error if this is not possible) StoreSystem.Lock(StateStoreName); } // Open the state store stateStore = StoreSystem.OpenStore(StateStoreName); StateStore = new TableStateStore(stateStore); // Get the fixed 64 byte area. var fixedArea = stateStore.GetArea(-1); long headP = fixedArea.ReadInt8(); StateStore.Open(headP); Setup(); InitObjectStore(); ReadVisibleTables(); ReadDroppedTables(); CleanUp(); }
public void Open() { if (!Exists()) throw new IOException("Table composite does not exist"); // Check the file Lock if (!IsReadOnly) { // Obtain the Lock (generate error if this is not possible) StoreSystem.Lock(StateStoreName); } // Open the state store stateStore = StoreSystem.OpenStore(StateStoreName); StateStore = new TableStateStore(stateStore); // Get the fixed 64 byte area. var fixedArea = stateStore.GetArea(-1); long headP = fixedArea.ReadInt8(); StateStore.Open(headP); Setup(); InitObjectStore(); ReadVisibleTables(); ReadDroppedTables(); CleanUp(); }