当我尝试执行以下代码时: -
IList<ContentSearchItem> lstQuery = (from itm1 in query
join itm2 in listMainContentQueryable on itm1.ItemId equals itm2.ItemId
select new ContentSearchItem
{
AssetTypes = itm1.AssetTypes,
ItemId = itm1.ItemId,
sortAssertIndex = itm2.sortAssertIndex,
}).ToList();
这里查询和listMainContentQueryable属于iQueryable类型,执行时会出现以下错误: -
c#不支持“加入”方法。声明类型:System.Linq.Iqueryable
c#不支持“加入”方法。声明类型:System.Linq.Iqueryable