public override void Close() { if (connectionState == ConnectionState.Closed) { throw new InvalidOperationException("Connection is already closed."); } NativeConnection.Dispose(); //duckDBDatabase.Dispose(); connectionState = ConnectionState.Closed; }
public override void Close() { NativeConnection.Dispose(); duckDBDatabase.Dispose(); }