예제 #1
0
        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");
        }
예제 #2
0
 public static async Task RunMultiTasks(List <TestUser> users)
 {
     await DataMigrateTask.RunMultiTasks(users);
 }