LINQ to SQL (Part 6 - Retrieving Data Using Stored Procedures)
LINQ to SQL语句之存储过程
http://www.cnblogs.com/lyj/archive/2008/03/17/1110374.html
linq to sql调用存储过程,出现"无法枚举查询结果多次"的问题
http://www.csharpwin.com/dotnetspace/12580r5702.shtml
下面的代码可以正常运行
注意:注释的代码为参考文章2中的方法,运行出错
DataClassesDataContext oDB = new DataClassesDataContext();
//ISingleResult<getHotLabelResult> oHotLabel = oDB.getHotLabel();
List<getHotLabelResult> oHotLabel = oDB.getHotLabel().ToList();
foreach (getHotLabelResult hl in oHotLabel)
{
}