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. Binding Gridview to IList <BusinessObject>包含IList <BusinessObject>
- 5. IQueryable的<t>或者IList的<t>
- 6. IEnumerable <>到IList <>
- 7. 使用服務負責人獲得TGT
- 8. 不能設置爲空的特性「TGT」
- 9. GSSManager.createCredential如何獲取Kerberos密鑰和TGT?
- 10. 由TGT創建iSCSI目標不能
- 11. 轉換字典<MyType> .ValueCollection to IList <MyType>
- 12. IQueryable <a> to ObservableCollection <a>其中a =匿名類型
- 13. 使用LINQ,如何將IList <IList <object>>轉換爲IList <object>?
- 14. Automapper映射IList <>到Iesi.Collections.Generic.ISet <>
- 15. IQueryable <Entity>在LINQ與嵌套對象IQueryable <DTO>
- 16. 如何實例化嵌套IList <T>的IList <T>?
- 17. 如何初始化IList <IList <string>>?
- 18. 將IList <T1>轉換爲IList <BaseT1>
- 19. AutoMapper:複製的IList <>到的IList <>
- 20. IList <InterfaceType>爲List <ImplementsInterfaceType>?
- 21. 如何作爲IQueryable返回IQueryable <Something><ISomething>
- 22. 可能轉換IQueryable <Derived>到IQueryable <Base>?
- 23. 爲IQueryable分配IQueryable <int>時編譯出錯<object>
- 24. ObjectQuery <T>或IQueryable <T>
- 25. 如何將linq組IQueryable <IEnumerable <T>>更改爲IQueryable <T>?
- 26. 的IList <mutable_struct> VS mutable_struct []
- 27. 返回的IQueryable <string>
- 28. 索引IQueryable <int>?
- 29. 如何轉換的IQueryable <IQueryable的<Page>>到的IQueryable <Page>使用LINQ
- 30. 從另一個IList <>
如果你有興趣的話,你可以做很長的路要走:從q中查詢選擇q或list.Select(q => q)都會讓你成爲IQueryable –
2011-01-24 15:02:40