假设我使用PetaPoco在循环中执行了更新查询,
foreach (var obj in mainObject) { db.Execute("update Table set Column = @0 where C1=@1 and C2 =@2", Column1, obj.data1, obj.data2); }
如何知道每个查询是否已成功执行?
c# foreach petapoco
c# ×1
foreach ×1
petapoco ×1