public static string GenerateTableJsonMappingCreateOrAlterCommand(KustoTableInfo kustoTable, string mappingName)
        {
            if (kustoTable == null)
            {
                throw new ArgumentNullException(nameof(kustoTable));
            }

            var mapping = kustoTable.Columns.Select(BuildColumnMapping).ToList();

            return(CslCommandGenerator.GenerateTableMappingCreateOrAlterCommand(
                       IngestionMappingKind.Json, kustoTable.TableName, mappingName, mapping));
        }
        public static string GenerateTableCreateCommand(KustoTableInfo kustoTable)
        {
            if (kustoTable == null)
            {
                throw new ArgumentNullException(nameof(kustoTable));
            }

            var columns = kustoTable.Columns
                          .Select(column => new Tuple <string, Type>(column.Value.Name, column.Value.Type));

            return(CslCommandGenerator.GenerateTableCreateCommand(kustoTable.TableName, columns));
        }