diff --git a/GBase/DataHandling/XmlDataHandler.cs b/GBase/DataHandling/XmlDataHandler.cs index 34948f6..56a51d9 100644 --- a/GBase/DataHandling/XmlDataHandler.cs +++ b/GBase/DataHandling/XmlDataHandler.cs @@ -80,12 +80,11 @@ namespace GBase.DataHandling public async Task AddEntry(T entry, IGBaseTable table, FileStream entryFile, CancellationToken cancellationToken) { - if (!await _xmlDataWriter.InitFile(entryFile, table.Type.Name, cancellationToken)) - return false; - + await _xmlDataWriter.InitFile(entryFile, table.Type.Name, cancellationToken); + foreach (var column in table.Columns) { - //TODO: Set value for each column + //set value for each column PropertyInfo property = entry.GetType().GetProperty(column.Name); if (property == null) continue; //TODO: What to do in this case? (Shouldn't really happen...)