IList to IQueryable
List<int> list = new List<int>() { 1, 2, 3, 4, }; IQueryable<int> query = list.AsQueryable(); If you don’t see the AsQueryable() method, add a using statement for System.Linq.
List<int> list = new List<int>() { 1, 2, 3, 4, }; IQueryable<int> query = list.AsQueryable(); If you don’t see the AsQueryable() method, add a using statement for System.Linq.