link中能否使用goto语句?如何跳出循环?帮我看下这段代码:query = db.t_user.Where(x => {if (x.id != 123) break;});
LINQ不能用break跳出,你可以使用takewhile,然后在委托中返回false终止迭代。