var dtDy = (from d in dtDytemp
select new {d.Id ,d.dymc }).ToList() ;
dtDy.Add(new {Id = 1, dymc = "公共会员"});
IEnumerable中没有Add方法,只能ToList后才能增加
var dtDy = (from d in dtDytemp
select new {d.Id ,d.dymc }).ToList() ;
dtDy.Add(new {Id = 1, dymc = "公共会员"});
IEnumerable中没有Add方法,只能ToList后才能增加