1 直接上例子. 2 var wflist = from u in db.TWelFare 3 where u.fy_no == fy_no 4 orderby u.we_no 5 group u by new { weno = u.we_no, wename = u.we_name } into g 6 select new { g.Key.weno, g.Key.wename };
时间: 2024-10-17 00:47:33
1 直接上例子. 2 var wflist = from u in db.TWelFare 3 where u.fy_no == fy_no 4 orderby u.we_no 5 group u by new { weno = u.we_no, wename = u.we_name } into g 6 select new { g.Key.weno, g.Key.wename };