var ctsDB = mooe.Files66.ToList();
Dictionary<string,string> mappedfields = new Dictionary<string,string>();
Dictionary<string,string> ctsfieldsValue = new Dictionary<string,string>();
for (int i = 0; i < ctsDB.Count; i++)
{
foreach(var item in mappedfields) {
// this line returns the item.key string not the value of it.
// item.key is the column name
var rowValue = mooe.Files66.Select(k = >item.Key).ToList();
// ctsfieldsValue.Add(item.Value,rowValue);
ctsfieldsValue.ToList();
}
}
我想遍历ctsDB
列表并获取特定行的值
这样的列:
if ctsDB [i] = fileID Field612 Fiel613
我在ctsfieldsValue
的value字段中有这些列名称。
我想迭代ctsDB[i]
仅获得列Field612
的值。
任何人都可以提供想法吗?