Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }