Exemplo n.º 1
0
 public static void IngestCsvFile(string connectionString, string tableName, string path, IEnumerable <string> tags)
 {
     using (var adminProvider = KustoClientFactory.CreateCslAdminProvider(connectionString))
     {
         var csvData = File.ReadAllText(path);
         var command = CslCommandGenerator.GenerateTableIngestPushCommand(
             tableName, /* compressed: */ true, csvData, tags);
         adminProvider.ExecuteControlCommand(command);
     }
 }