可能重复: IList<T> to IQueryable<T>
显示代码
var list = new List<string>(); var queryable = list.AsQueryable();
System.Linq