说我有这两个对象:
OracleConnection connection = new OracleConnection(connectionString); OracleCommand command = new OracleCommand(sql,connection);@H_404_2@要关闭连接或Oracle,我必须调用command.Dispose(),connection.Dispose()或两者?
这够好吗
using(connection) { OracleDataReader reader = cmd.ExecuteReader(); // whatever... }@H_404_2@