public void Dispose() { if (oleDb != null) { oleDb.Dispose(); } if (oleDbDataReader != null) { oleDbDataReader.Close(); } if (oleDbCommand != null) { oleDbCommand.Dispose(); } if (oleDbConnection != null) { oleDbConnection.Close(); oleDbConnection.Dispose(); } if (tables != null) { tables.Clear(); tables = null; } }
public void Dispose() { oleDb.Dispose(); tables.Clear(); tables = null; }