public void testAddRow(SqlBaseItemXml basemodel) { try { ManagerConfig servicemanagerconfig = new ManagerConfig(); int writenum = 0; for (int i = 0; i < 100000000; i++) { DBPosition position = new DBPosition(); var getbool = position.GetPosition(basemodel); servicemanagerconfig.SaveConfigServer(basemodel); servicemanagerconfig.SaveConfigDatabase(basemodel); servicemanagerconfig.SaveConfigTable(basemodel); if (getbool) { var serveritem = DBConfig.GetServerItemXmlConfig(basemodel, position.currentservernumber); DBWrite.AddBulkRow(basemodel, serveritem, position.currentconnstrdatabase, testBulkRowData(basemodel, position.currenttable), position.currentdatabasenumber, position.currenttablenumber, basemodel.FieldIndexList); servicemanagerconfig.SaveConfigField(basemodel); Console.WriteLine("" + (++writenum)); } else { Console.WriteLine("请配置更多服务器后写入"); break; } } } catch (Exception ex) { Console.WriteLine(ex.Message); } }