protected override void UnsafeClear()
            {
                base.UnsafeClear();

                SqlStatements.Clear();
                Parameters.Clear();
            }
Ejemplo n.º 2
0
            public void Clear()
            {
                lock (_sync) // Guard against tests with explicit concurrency
                {
                    SqlStatements.Clear();
                    LogBuilder.Clear();
                    Parameters.Clear();

                    _cancellationTokenSource = null;
                }
            }