from x in TB_card
group x by new { x.userName, x.cardNo } into g
select new { g.Key.userName, g.Key.cardNo, g.First().rec }