public static string DataToYaml(DataDictionaryList datatable, SeedYamlFormat format = SeedYamlFormat.Hash, YamlColumnNamesType yamlColumnNames = null) { var writer = new StringWriter(); DataToYaml(writer, datatable, format, yamlColumnNames); return(writer.ToString()); }
public static string DataToYaml(DataDictionaryList datatable, IEnumerable <string> yamlColumnNames = null) { var writer = new StringWriter(); DataToYaml(writer, datatable, yamlColumnNames); return(writer.ToString()); }
public static void DataToYaml(TextWriter writer, DataDictionaryList datatable, SeedYamlFormat format = SeedYamlFormat.Hash, YamlColumnNamesType yamlColumnNames = null) { if (format == SeedYamlFormat.Hash) { DataToYaml(writer, datatable.ToDictionaryDictionary(), yamlColumnNames); } else { DataToYaml(writer, datatable.Table, yamlColumnNames); } }
public YamlData( DataDictionaryList data, bool needSubdivide = false, int preCut = 0, int postCut = 0, string subdivideFilename = null, SeedYamlFormat format = SeedYamlFormat.Hash, bool deletePrevious = false, IEnumerable <string> yamlColumnNames = null ) { Data = data; NeedSubdivide = needSubdivide; PreCut = preCut; PostCut = postCut; SubdivideFilename = subdivideFilename; Format = format; DeletePrevious = deletePrevious; YamlColumnNames = yamlColumnNames == null ? new YamlColumnNamesType() : new YamlColumnNamesType(yamlColumnNames.Select(yamlColumnName => new Wildcard(yamlColumnName))); }
public static void DataToYaml(TextWriter writer, DataDictionaryList datatable, IEnumerable <string> yamlColumnNames = null) { DataToYaml(writer, datatable.ToDictionaryDictionary(), yamlColumnNames); }
public YamlData(DataDictionaryList data) { this.data = data; }
public abstract void DataToExcel(DataDictionaryList data, bool delete = false);