다음 코드가 있습니다.이 쿼리의 결과에서 모든 필드를 반복하고 필드라는 사전을 채 웁니다.어떻게 OracleDataReader의 모든 열을 루프 할 수 있습니까?
이 경우 데이터 제공자가 가능합니까?
OracleCommand command = connection.CreateCommand();
string sql = "Select * from MYTABLE where ID = " + id;
command.CommandText = sql;
Dictionary<string, string> fields = new Dictionary<string, string>();
OracleDataReader reader = command.ExecuteReader();