c# get column names and data type from datareader code example
Example: datareader get field names
var fieldNames = Enumerable.Range(0, reader.FieldCount)
.Select(reader.GetName)
.ToArray();
var fieldNames = Enumerable.Range(0, reader.FieldCount)
.Select(reader.GetName)
.ToArray();