public static async Task RunMySqlLoaderTask(List <TestUser> users) { var fileName = "users"; var filePath = Directory.GetCurrentDirectory() + "\\" + fileName + ".csv"; await DataMigrateTask.Export(filePath, users); var sw = new Stopwatch(); sw.Start(); DataMigrateTask.Load(filePath, "users"); sw.Stop(); Console.WriteLine($"MySqlBulkLoader 用时:{sw.ElapsedMilliseconds} ms"); }
public static async Task RunMultiTasks(List <TestUser> users) { await DataMigrateTask.RunMultiTasks(users); }