52
A
回答
86
List<int> list = new List<int>() { 1, 2, 3, 4, };
IQueryable<int> query = list.AsQueryable();
如果你没有看到AsQueryable()
方法,添加一个using语句System.Linq
。
10
相关问题
- 1. IQueryable to IQueryable <T>
- 2. 部队更新TGT
- 3. convert IQueryable <int> to <int>
- 4. 无法从AD获得TGT
- 5. Binding Gridview to IList <BusinessObject>包含IList <BusinessObject>
- 6. LINQ:How to convert from ISingleResult <T> to IQueryable <int>
- 7. IQueryable的<t>或者IList的<t>
- 8. IEnumerable <>到IList <>
- 9. IList <IList<T>>到IReadonlyCollection <IReadonlyCollection <T>>
- 10. 转换字典<MyType> .ValueCollection to IList <MyType>
- 11. 不能设置为空的特性“TGT”
- 12. GSSManager.createCredential如何获取Kerberos密钥和TGT?
- 13. 使用服务负责人获得TGT
- 14. 由TGT创建iSCSI目标不能
- 15. IQueryable <a> to ObservableCollection <a>其中a =匿名类型
- 16. 转换“任务<IList<T>>”到“的IList <T>”
- 17. 使用LINQ,如何将IList <IList <object>>转换为IList <object>?
- 18. 将IList <Object>投射到IList <CustomObject>?
- 19. Automapper映射IList <>到Iesi.Collections.Generic.ISet <>
- 20. 投的IList <int>到IList的<string>
- 21. 自IList <object_type>
- 22. 使用列表<T>与IList的<T>
- 23. IQueryable <Entity>在LINQ与嵌套对象IQueryable <DTO>
- 24. 转换IQueryable的<IEnumerable的<Entity>>到的IQueryable <Entity>
- 25. 如何实例化嵌套IList <T>的IList <T>?
- 26. IList的C#参数<IList <(ClassType)>>
- 27. 将IList <T1>转换为IList <BaseT1>
- 28. 如何初始化IList <IList <string>>?
- 29. AutoMapper:复制的IList <>到的IList <>
- 30. 是否收集<T>包装IList <T>或枚举IList <T>?
如果你有兴趣的话,你可以做很长的路要走:从q中查询选择q或list.Select(q => q)都会让你成为IQueryable –
2011-01-24 15:02:40