public void WriteObjectRow(BulkObject bulkObject, bool excludeReadonlyData) { var values = new RowValues(); bulkObject.WriteToRowValues(values, excludeReadonlyData); values[StringTable.Type] = _bulkObjectFactory.GetBulkRowType(bulkObject); _streamWriter.WriteLine(_formatter.FormatCsvRow(values.Columns)); }
private void WriteFormat(List <string> entitiesPayload, ICsvTextFormatter formatter) { var versionRow = new RowValues(); versionRow[StringTable.Type] = StringTable.SemanticVersion; versionRow[StringTable.Name] = FormatVersion; entitiesPayload.Add(formatter.FormatCsvRow(versionRow.Columns)); }