List<cs_orders> orderlist = _ordersRepository.WhereLoadEntityEnumerable(p => p.order_status == && p.create_time.AddHours(expireHour) < now).ToList<cs_orders>(); orderlist.ForEach(p => { p.order_status = ; p.update_time = now; p.update_remark += "-系统自动取消"; p.canel_case = "超时系统自动取消"; p.canel_time = now; } );