From 7d2b91701b4b288e668257b49e1ee052ff5a7d5f Mon Sep 17 00:00:00 2001 From: Simon G Date: Fri, 13 Nov 2020 19:35:58 +0100 Subject: [PATCH] - adapt to init and remove todo --- GBase/DataHandling/XmlDataHandler.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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...)