构造DbDataReader时带上“CommandBehavior.CloseConnection”参数,则关闭时会自动关闭连接:
dbCommand.ExecuteReader(CommandBehavior.CloseConnection);
否则在关闭DbDataReader时,一定要记得同时关闭相关的DbConnection