var query = from x in table select x;foreach (var item in x){...
}
foreach (var item in table){...}
两种写法一样,而且性能也一样