void Close() { if (!isClosed) { GetRecordsAffected(); if (command != null) { command.CloseDataReader(); } } if (statement != null) { statement.Dispose(); statement = null; } //if (schemaTable != null) { // schemaTable.Dispose (); // schemaTable = null; //} isClosed = true; }
void Close() { if (!isClosed) { GetRecordsAffected(); if (command != null) { command.CloseDataReader(); } } if (statement != null) { statement.Dispose(); statement = null; } #if NET_2_0 if (schemaTable != null) { schemaTable.Dispose(); schemaTable = null; } #endif isClosed = true; }