How can I get a list of fields from OdbcDataReader in C#?
For example, for a table with two fields, Field1
and Field2
:
DbCommand.CommandText = "SELECT * FROM TABLE WHERE 0=1";
DbReader = DbCommand.ExecuteReader();
DbReader.???
would give to me a list of two elements - ["Field1","Field2"]
Is there such a function?