/// <summary> /// Starts a new transaction - lock database to garantee that only one processes is in a transaction /// </summary> public LiteTransaction Begin(bool readOnly) { lock (_activeTransactions) { _disk.Open(readOnly); var trans = new LiteTransaction(this); _activeTransactions.Push(trans); return(trans); } }