且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

IList< T>到IQueryable< T>

更新时间:2022-04-02 21:01:27

List<int> list = new List<int>() { 1, 2, 3, 4, };
IQueryable<int> query = list.AsQueryable();

如果看不到AsQueryable()方法,请为System.Linq添加using语句.

If you don't see the AsQueryable() method, add a using statement for System.Linq.