EF —— 添加数据集
using TEntityContext context = new TEntityContext();
//foreach(var record in listRecords)
//{
//}
context.Set<T>().AddRange(listRecords);
//context.AddRange(listRecords);
context.SaveChanges();

浙公网安备 33010602011771号