次のコードがあり、このクエリの結果のすべてのフィールドをループして、fieldという辞書にデータを入力します。
データリーダーを考えると、これは可能ですか?
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();