List <Model> model = new(); bool isRepeat = model.GroupBy(i => i.ID).Any(g => g.Count() > 1);//判断ID列是否有相同的