公告
财富商城
积分规则
提问
发文
2019-01-09 02:06发布
祖国的老花朵
I have an List and I'd like to wrap it into an IQueryable.
Is this possible?
Use the AsQueryable<T>() extension method.
AsQueryable<T>()
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.
AsQueryable()
System.Linq
最多设置5个标签!
Use the
AsQueryable<T>()
extension method.If you don't see the
AsQueryable()
method, add a using statement forSystem.Linq
.