Cast IList to List

后端 未结 9 1680
时光取名叫无心
时光取名叫无心 2020-12-08 06:09

I am trying to cast IList type to List type but I am getting error every time.

List subProducts= Model.subproduct         


        
9条回答
  •  自闭症患者
    2020-12-08 06:53

        public async Task> FindEntitiesByExpression(Expression> predicate)
        {
            IList result = await _dbContext.Set().Where(predicate).ToListAsync();
    
            return result.ToList();
        }
    

提交回复
热议问题