- adapt to init and remove todo

master
Simon G 5 years ago
parent 52aedb99a9
commit 7d2b91701b
  1. 5
      GBase/DataHandling/XmlDataHandler.cs

@ -80,12 +80,11 @@ namespace GBase.DataHandling
public async Task<bool> AddEntry<T>(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...)

Loading…
Cancel
Save