protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { try { if (inTransaction) { readTransaction.Dispose(); } } finally { model.EndTransaction(); } } disposed = true; } }