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)); }