“System.Collections.Generic.IEnumerable<TestDAL.HistoryData>”不包含“ToList”的定义
2012-03-07 00:52
459 查看
错误 2
“System.Collections.Generic.IEnumerable<TestDAL.HistoryData>”不包含“ToList”的定义,并且找不到可接受类型为“System.Collections.Generic.IEnumerable<TestDAL.HistoryData>”的第一个参数的扩展方法“ToList”(是否缺少 using 指令或程序集引用?)
J:\太阳能近期\政府小区即时通信\testXML\TestDAL\Program.cs
101 74
TestDAL
这个错误是因为没有“using System.Linq;”,导则IEnumerable不能使用拓展方法“ToList”。
“System.Collections.Generic.IEnumerable<TestDAL.HistoryData>”不包含“ToList”的定义,并且找不到可接受类型为“System.Collections.Generic.IEnumerable<TestDAL.HistoryData>”的第一个参数的扩展方法“ToList”(是否缺少 using 指令或程序集引用?)
J:\太阳能近期\政府小区即时通信\testXML\TestDAL\Program.cs
101 74
TestDAL
这个错误是因为没有“using System.Linq;”,导则IEnumerable不能使用拓展方法“ToList”。
相关文章推荐
- “System.Collections.Generic.IEnumerable<TestDAL.HistoryData>”不包含“ToList”的定义
- “System.Collections.Generic.IEnumerable<decimal>”不包含“ToArray”的定义,并且找不到可接受类型为“System.Collections.Generic.IEnumerable<decimal>”的第一个参数的扩展方法“ToArray”
- 无法将类型“System.Collections.Generic.IEnumerable<EmailSystem.Model.TemplateInfo>”隐式转换为“System.Collections.Generic.List<EmailSystem.Model.TemplateInf
- System.Collections.Generic.IEnumerable<T>接口
- 使用泛型 类型“System.Collections.Generic.IEnumerator<T>”需要 1 个类型参数
- “System.Linq.IQueryable<int>”不包含“Contains”的定义 或者“System.Linq.IEnumberable<int>”不包含“Contains”的定义
- System.Collections.Generic.List<>是System.Collections.ArrayList的泛型实现
- System.Collections.Generic.List<T> 与 System.Collections.ArrayList
- MVC 无法将类型“System.Collections.Generic.List<AnonymousType#1>”隐式转换为“System.Collections.Generic.IList<Mvc3Modeltest.Models.Movie>”。存在一个显式转换(是否缺少强制转换?))
- NHibernate无法将类型“System.Collections.Generic.IList<T>”隐式转换为“System.Collections.Generic.IList<IT>
- 无法将类型“System.Collections.Generic.List<anonymous type:string ClassID,string ClsssName>”隐式转换为“System.Collections.Generic.List<Ecology.Model.EnergyFlowGraph>”
- ForEach :对 System.Collections.Generic.List<T> 的每个元素执行指定操作
- System.Collection.IList 转换成为 System.Collection.Generic.IList<T>
- [corefx注释说]-System.Collections.Generic.Stack<T>
- AsParallel \AsQueryable<T>().ToList() [System.ArgumentOutOfRangeException was unhandled" 索引超出范围。必须为非负值并小于集合大小]解决方法
- The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[BMS.DataAccess.Models.ServiceTyp
- 使用泛型类型System.Collections.Generic.Icomparer &lt;T&gt; 需要一个类型参数
- 一个提醒...such as implement System.Collections.Generic.IComparer<T>
- 具有键×××的 ViewData 项属于类型System.String,但它必须属于类型IEnumerable<SelectListItem>
- 具有键“Shape”的 ViewData 项属于类型“System.String”,但它必须属于类型“IEnumerable<SelectListItem>”。