List<int> list = new List<int>() { 1, 2, 3, 4, }; IQueryable<int> query = list.AsQueryable(); 如果您没有看到 AsQueryable() 方法,请添加一个 System.Linq 的 using 语句。