直接InsertRange空集合会报错
if (addList.Count>0) { dbContext.FsFactories.InsertRange(addList); } if (updateList.Count>0) { dbContext.FsFactories.UpdateRange(updateList); }
SqlSugar批量添加修改问题
原文:https://www.cnblogs.com/Sea1ee/p/10231026.html