我们从表中返回一组数据,需要根据变量选择列
代码是
Dim columnNo as Integer = 1
Dim rs as IEnumerable(Of Object) = db.ImportTable
For each rsRow in rs
Dim columnF1 = rsRow.f1 'where the field name is f1 (this works fine)
Dim columnVariable = rsRow."f" & columnNo 'This line fails
感谢期待