“System.Collections.Generic.IEnumerable<TestDAL.HistoryData>”不包含“ToList”的定义
来源:互联网 发布:安卓开发java基础书 编辑:程序博客网 时间:2024/06/07 06:02
错误 2 “System.Collections.Generic.IEnumerable<TestDAL.HistoryData>”不包含“ToList”的定义,并且找不到可接受类型为“System.Collections.Generic.IEnumerable<TestDAL.HistoryData>”的第一个参数的扩展方法“ToList”(是否缺少 using 指令或程序集引用?)J:\太阳能近期\政府小区即时通信\testXML\TestDAL\Program.cs101 74 TestDAL
这个错误是因为没有“using System.Linq;”,导则IEnumerable不能使用拓展方法“ToList”。
- “System.Collections.Generic.IEnumerable<TestDAL.HistoryData>”不包含“ToList”的定义
- System.Collections.Generic.IEnumerable<T>接口
- 定义泛型集合的命名空间:System.Collections.Generic
- 在Share Point 2010中,如何使用 in 语句?并且解决Boolean Contains[Int32](System.Collections.Generic.IEnumerable`1[System.Int32], Int32)的问题。
- System.Collections.Generic
- 关于Linq的ToList(),IEnumerable,IQueryable
- System.Nullable<System.DateTime>”不包含“Year”的定义
- System.Collections、System.Collections.Generic、System.Collections.Specialized
- System.Collections.Generic 命名空间
- System.Collections.Generic命名空间
- System.Collections.Generic 命名空间
- System.Collections.Generic 命名空间
- “System.Web.UI.UserControl“不包含“xxxx”的定义
- System.Web.UI.UserControl“不包含“xxxxxxxxx”的定义
- System.Web.Mvc.HtmlHelper”不包含“ActionLink”的定义
- C#“System.Data.DataRow[]”不包含“Where”的定义
- ASP.Net 之 System.Collections.Generic 下的容器类
- “System.Linq.IQueryable<int>”不包含“Contains”的定义 或者“System.Linq.IEnumberable<int>”不包含“Contains”的定义
- 单调队列、单调栈(第一周DIY)
- 解剖Nginx·自动脚本篇(1)解析配置选项脚本 auto/options
- ubuntu hadoop eclipse ssh 配置
- 多线程电梯调度仿真程序
- 解剖Nginx·自动脚本篇(2)设置初始变量脚本 auto/init
- “System.Collections.Generic.IEnumerable<TestDAL.HistoryData>”不包含“ToList”的定义
- Vim(gvim)编程字体推荐
- 结构之法 算法之道---------http://blog.csdn.net/v_JULY_v(结构算法研究链接)
- DataContext.ExecuteQuery的问题
- 解剖Nginx·自动脚本篇(3)源码相关变量脚本 auto/sources
- Knowledge Conclusion - PART II : CSharp, .NET
- 每个程序员都应该知道的福利
- Knowledge Conclusion - PART III: Entity framework & SQL Server
- Knowledge Conclusion - PART IV: Design patterns