【发布时间】:2011-08-21 13:49:41
【问题描述】:
是否可以将 var 数据转换为哈希表?
Hashtable hsTest = new Hashtable();
var oFeat = (from t in db.test
where t.Product_ID == iProductID
select t);
【问题讨论】:
-
是的。在此处查看 ToDictionary() 方法:stackoverflow.com/questions/166174/…
标签: linq-to-sql