Resolve "ASCII export and import for Git" #83

Merged
thorsten merged 30 commits from 48-ascii-export-and-import-for-git into main 2023-02-12 12:55:07 +00:00
Showing only changes of commit bafb325880 - Show all commits

View File

@ -160,10 +160,10 @@ public sealed class DataContext : DbContext, IDataContext
await JsonSerializer.SerializeAsync(fileStream,
new JsonData
{
Settings = this.Settings.Select(n => n.ToJsonSetting()).ToList(),
Sections = this.Sections.Select(n => n.ToJsonSection()).ToList(),
TextElements = this.TextElements.Select(n => n.ToJsonTextElement()).ToList(),
Translations = this.Translations.Select(n => n.ToJsonTranslation()).ToList(),
Settings = this.Settings.OrderBy(n => n.UniqueId).Select(n => n.ToJsonSetting()).ToList(),
Sections = this.Sections.OrderBy(n => n.UniqueId).Select(n => n.ToJsonSection()).ToList(),
TextElements = this.TextElements.OrderBy(n => n.UniqueId).Select(n => n.ToJsonTextElement()).ToList(),
Translations = this.Translations.OrderBy(n => n.UniqueId).Select(n => n.ToJsonTranslation()).ToList(),
}, jsonSettings);
}