public static void WriteToCsv() { var basePath = BotSettings.LearningDataSetPath; var filePath = basePath + "SpamCollection.csv"; var data = new Query("words_learning") .SelectRaw("mark Mark, message Message") .ExecForMysql(true) .Get <LearnCsv>() .ToList(); CsvUtil.WriteRecords(data, filePath, delimiter: "\t"); }